Skip to content

Commit

Permalink
Fixing IPU lit testing for IRON-example reference designs
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierichter-amd committed Mar 22, 2024
1 parent ad67fc4 commit 489e889
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
2 changes: 1 addition & 1 deletion reference_designs/IRON-examples/matrix_add_one/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// REQUIRES: ryzen_ai, chess
//
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt -l 4096 | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_add/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_max/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_min/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_mult/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_scalar/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions reference_designs/IRON-examples/vector_sum/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// REQUIRES: ryzen_ai
//
// RUN: xchesscc_wrapper aie2 -I %aietools/include -c %S/scale.cc -o ./scale.o
// RUN: %python %S/aie2.py > ./aie.mlir
// RUN: %python %S/aie2.py ipu 0 > ./aie.mlir
// RUN: %python aiecc.py --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s
Expand Down

0 comments on commit 489e889

Please sign in to comment.