Skip to content

Commit

Permalink
Fix test failures when running with llvm-aie (#1876)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield authored Oct 23, 2024
1 parent f19d9a3 commit 3cfcd24
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 31 deletions.
2 changes: 1 addition & 1 deletion test/generate-mmap/allocation_error.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: peano
// REQUIRES: peano, aietools_aie
// RUN: not aiecc.py --basic-alloc-scheme --no-xchesscc --no-xbridge %s 2>&1 | FileCheck %s --check-prefix=PEANO
// PEANO: ld.lld: error: section '.bss' will not fit in region 'data': overflowed by 4 bytes

Expand Down
2 changes: 0 additions & 2 deletions test/npu-xrt/add_12_i8_using_2d_dma_op_with_padding/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
// RUN: %run_on_npu ./test.exe aie.xclbin | FileCheck %s
// CHECK: PASS!
//
// XFAIL: peano

2 changes: 0 additions & 2 deletions test/npu-xrt/add_21_i8_using_dma_op_with_padding/run.lit
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++ %test_utils_flags
// RUN: %run_on_npu ./test.exe aie.xclbin | FileCheck %s
// CHECK: PASS!

// XFAIL: peano
7 changes: 2 additions & 5 deletions test/unit_tests/aie2/01_precompiled_core_function/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
//===----------------------------------------------------------------------===//

// REQUIRES: peano
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2 -c %S/kernel.cc
// RUN: %PYTHON aiecc.py %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf
// RUN: %run_on_board ./test.elf

// CHECK: PASS!
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2-none-unknown-elf -c %S/kernel.cc
// RUN: %PYTHON aiecc.py --no-xchesscc --no-xbridge %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf

module @test_chesss_01_precompiled_core_function {
aie.device(xcve2802) {
Expand Down
7 changes: 2 additions & 5 deletions test/unit_tests/aie2/03_cascade_core_functions/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
//===----------------------------------------------------------------------===//

// REQUIRES: peano
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2 -c %S/kernel.cc
// RUN: %PYTHON aiecc.py %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf
// RUN: %run_on_board ./test.elf

// CHECK: PASS!
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2-none-unknown-elf -c %S/kernel.cc
// RUN: %PYTHON aiecc.py --no-xchesscc --no-xbridge %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf

module {
aie.device(xcve2802) {
Expand Down
9 changes: 2 additions & 7 deletions test/unit_tests/aie2/05_shim_dma_core_function/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
//===----------------------------------------------------------------------===//

// REQUIRES: peano
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2 -c %S/kernel.cc
// RUN: %PYTHON aiecc.py %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf
// RUN: %run_on_board ./test.elf

// CHECK: AIE2 ISS
// CHECK: test start.
// CHECK: PASS!
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2-none-unknown-elf -c %S/kernel.cc
// RUN: %PYTHON aiecc.py --no-xchesscc --no-xbridge %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf

module @test_chess_05_shim_dma_core_function {
aie.device(xcve2802) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
//===----------------------------------------------------------------------===//

// REQUIRES: peano
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2 -c %S/kernel.cc
// RUN: %PYTHON aiecc.py %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf
// RUN: %run_on_board ./test.elf
// RUN: %PEANO_INSTALL_DIR/bin/clang --target=aie2-none-unknown-elf -c %S/kernel.cc
// RUN: %PYTHON aiecc.py --no-xchesscc --no-xbridge %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf

module @test_chess_04_deprecated_shim_dma_precompiled_kernel{
aie.device(xcve2802) {
Expand Down
16 changes: 10 additions & 6 deletions test/unit_tests/chess_compiler_tests_aie2/00_itsalive/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: valid_xchess_license
// REQUIRES: peano
// REQUIRES: valid_xchess_license, peano

// RUN: %PYTHON aiecc.py --no-unified --xchesscc --xbridge %s
// RUN: %PYTHON aiecc.py --unified --xchesscc --xbridge %s
// RUN: %PYTHON aiecc.py --no-unified --no-xchesscc --xbridge %s
// RUN: %PYTHON aiecc.py --unified --no-xchesscc --xbridge %s
// RUN: %PYTHON aiecc.py --no-unified --xchesscc --no-xbridge %s
// RUN: %PYTHON aiecc.py --unified --xchesscc --no-xbridge %s
// RUN: %PYTHON aiecc.py --no-unified --no-xchesscc --no-xbridge %s
// RUN: %PYTHON aiecc.py --unified --no-xchesscc --no-xbridge %s

// xchesscc and open source peano do not interact well
// UN: %PYTHON aiecc.py --no-unified --no-xchesscc --xbridge %s
// UN: %PYTHON aiecc.py --unified --no-xchesscc --xbridge %s
// UN: %PYTHON aiecc.py --no-unified --xchesscc --no-xbridge %s
// UN: %PYTHON aiecc.py --unified --xchesscc --no-xbridge %s

module @test00_itsalive {
aie.device(xcve2802) {
Expand Down

0 comments on commit 3cfcd24

Please sign in to comment.