Skip to content

Commit

Permalink
[aievec][nfc] update e2e tests to use bare ptr for to-llvm flow (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestcl-amd authored Jun 13, 2024
1 parent 3ac9566 commit 0e2b631
Show file tree
Hide file tree
Showing 23 changed files with 59 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=32" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i16xi16_max_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int16_t *in0_allocated, int16_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int16_t *in1_allocated,
int16_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int16_t *out0_allocated, int16_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=32" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
18 changes: 6 additions & 12 deletions test/unit_tests/aievec_tests/i16xi16_min_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#ifdef TO_CPP
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#elif TO_LLVM

#ifdef TO_LLVM
extern "C" {
void dut(int16_t *in0_allocated, int16_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int16_t *in1_allocated,
int16_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int16_t *out0_allocated, int16_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#ifdef TO_LLVM
}
#endif

void dut_ref(int16_t *in0, int16_t *in1, int16_t *out0);

alignas(32) int16_t g_in0[IN0_SIZE];
Expand All @@ -36,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=32" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i16xi16_mul_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int16_t *in0_allocated, int16_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int16_t *in1_allocated,
int16_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int16_t *out0_allocated, int16_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int16_t *restrict in0, int16_t *restrict in1, int16_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -37,11 +33,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=32" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i16xi16_mul_elem_2/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int16_t *restrict in0, int16_t *restrict in1, int32_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int16_t *in0_allocated, int16_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int16_t *in1_allocated,
int16_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int32_t *out0_allocated, int32_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int16_t *restrict in0, int16_t *restrict in1, int32_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -37,11 +33,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=16" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i32xi32_max_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int32_t *in0_allocated, int32_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int32_t *in1_allocated,
int32_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int32_t *out0_allocated, int32_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=16" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i32xi32_min_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int32_t *in0_allocated, int32_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int32_t *in1_allocated,
int32_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int32_t *out0_allocated, int32_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=16" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i32xi32_mul_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int32_t *in0_allocated, int32_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int32_t *in1_allocated,
int32_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int32_t *out0_allocated, int32_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int32_t *restrict in0, int32_t *restrict in1, int32_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=64" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i8xi8_max_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int8_t *restrict in0, int8_t *restrict in1, int8_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int8_t *in0_allocated, int8_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int8_t *in1_allocated,
int8_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int8_t *out0_allocated, int8_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int8_t *restrict in0, int8_t *restrict in1, int8_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=64" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
16 changes: 4 additions & 12 deletions test/unit_tests/aievec_tests/i8xi8_min_elem/testbench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#include <cstdio>
#include <cstdlib>

#ifdef TO_CPP
void dut(int8_t *restrict in0, int8_t *restrict in1, int8_t *restrict out0);
#elif TO_LLVM
#ifdef TO_LLVM
extern "C" {
void dut(int8_t *in0_allocated, int8_t *in0_aligned, int64_t in0_offset,
int64_t in0_sizes_0, int64_t in0_strides_0, int8_t *in1_allocated,
int8_t *in1_aligned, int64_t in1_offset, int64_t in1_sizes_0,
int64_t in1_strides_0, int8_t *out0_allocated, int8_t *out0_aligned,
int64_t out0_offset, int64_t out0_sizes_0, int64_t out0_strides_0);
#endif
void dut(int8_t *restrict in0, int8_t *restrict in1, int8_t *restrict out0);
#ifdef TO_LLVM
}
#endif

Expand All @@ -38,11 +34,7 @@ int main(int argc, char *argv[]) {

chess_memory_fence();
auto cyclesBegin = chess_cycle_count();
#ifdef TO_CPP
dut(g_in0, g_in1, g_out0);
#elif TO_LLVM
dut(g_in0, g_in0, 0, 0, 0, g_in1, g_in1, 0, 0, 0, g_out0, g_out0, 0, 0, 0);
#endif
auto cyclesEnd = chess_cycle_count();
chess_memory_fence();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: mkdir -p %t/data; cd %t
// RUN: aie-opt %s -affine-super-vectorize="virtual-vector-size=32" --convert-vector-to-aievec="aie-target=aieml" -lower-affine | aie-translate -aieml=true --aievec-to-cpp -o dut.cc
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. -c dut.cc -o dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args -DTO_CPP +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xchesscc_wrapper %xchesscc_aie2_args +w work +o work -I%S -I. %S/testbench.cc work/dut.o
// RUN: xca_udm_dbg --aiearch aie-ml -qf -T -P %aietools/data/aie_ml/lib/ -t "%S/../profiling.tcl ./work/a.out" >& xca_udm_dbg.stdout
// RUN: FileCheck --input-file=./xca_udm_dbg.stdout %s
// CHECK: TEST PASSED
Expand Down
Loading

0 comments on commit 0e2b631

Please sign in to comment.