forked from Xilinx/mlir-air
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python-binding board test for vecmat with
i8
data and float32
…
… block-wise scaling factors (Xilinx#762) * Add test for vecmat i8 with float32 block-wise scaling factors * Fixup .o file path in Makefile * Enable sweeping along N dimension
- Loading branch information
1 parent
5aeb6c0
commit 8fe0517
Showing
5 changed files
with
695 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
programming_examples/vector_matrix_multiplication/block_quantized_i8/single_core/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (C) 2024, Advanced Micro Devices, Inc. | ||
# SPDX-License-Identifier: MIT | ||
srcdir := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
|
||
targetname := $(shell basename ${srcdir}) | ||
|
||
all: run | ||
|
||
print: | ||
${powershell} python3 ${srcdir}/single_core.py -p | ||
|
||
run: | ||
mkdir -p build | ||
cd build && ${powershell} xchesscc_wrapper aie2 -c ${srcdir}/vm.cc -o vm.o | ||
cd build && ${powershell} python3 ${srcdir}/single_core.py | ||
|
||
clean: | ||
rm -rf build __pycache__ |
8 changes: 8 additions & 0 deletions
8
...ing_examples/vector_matrix_multiplication/block_quantized_i8/single_core/run_makefile.lit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// (c) Copyright 2024 Advanced Micro Devices, Inc. | ||
// SPDX-License-Identifier: MIT | ||
// | ||
// REQUIRES: ryzen_ai, valid_xchess_license | ||
// | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: make -f %S/Makefile run | FileCheck %s | ||
// CHECK: PASS! |
Oops, something went wrong.