Skip to content

Commit

Permalink
Add python-binding board test for vecmat with i8 data and float32
Browse files Browse the repository at this point in the history
… 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
erwei-xilinx authored Nov 8, 2024
1 parent 5aeb6c0 commit 8fe0517
Show file tree
Hide file tree
Showing 5 changed files with 695 additions and 0 deletions.
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__
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!
Loading

0 comments on commit 8fe0517

Please sign in to comment.