Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid test conflicts between peano and chess #1617

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions aie_runtime_lib/AIE/chess_intrinsic_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ extern "C" void llvm___aie___lock___acquire___reg(unsigned id, unsigned val) {
extern "C" void llvm___aie___lock___release___reg(unsigned id, unsigned val) {
release(id, val);
}

extern "C" int llvm___aie___get___ss(int stream) { return get_ss(stream); }
extern "C" float llvm___aie___getf___ss(int stream) { return getf_ss(stream); }
extern "C" int llvm___aie___get___ss0___tlast() { return get_ss0_tlast(); }
extern "C" int llvm___aie___get___ss1___tlast() { return get_ss1_tlast(); }
extern "C" int llvm___aie___get___wss0___tlast() { return get_wss0_tlast(); }
extern "C" int llvm___aie___get___wss1___tlast() { return get_wss1_tlast(); }
extern "C" void llvm___aie___put___ms(int idx_ms, int a) { put_ms(idx_ms, a); }
//extern "C" void llvm___aie___put___ms___tlast(int idx_ms, int a, int tlast) { put_ms(idx_ms, a, tlast); }
3 changes: 1 addition & 2 deletions test/unit_tests/aie/31_stream_core/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: peano, !hsa
// REQUIRES: !hsa

// RUN: %PYTHON aiecc.py --aiesim --no-xchesscc --xbridge %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %link_against_hsa% %s %test_lib_flags %S/test.cpp -o test.elf
// RUN: %run_on_board ./test.elf
// RUN: sh -c 'aie.mlir.prj/aiesim.sh; exit 0' | FileCheck %s

// CHECK: test start.
// CHECK: PASS!
Expand Down
12 changes: 7 additions & 5 deletions test/unit_tests/chess_compiler_tests/00_itsalive/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
//===----------------------------------------------------------------------===//

// REQUIRES: valid_xchess_license
// REQUIRES: 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

// These cases mix chess and peano, which is not supported.
// DONTREQUIRES: peano
// DONTRUN: %PYTHON aiecc.py --no-unified --no-xchesscc --xbridge %s
// DONTRUN: %PYTHON aiecc.py --unified --no-xchesscc --xbridge %s
// DONTRUN: %PYTHON aiecc.py --no-unified --xchesscc --no-xbridge %s
// DONTRUN: %PYTHON aiecc.py --unified --xchesscc --no-xbridge %s

module @test00_itsalive {
%tile12 = aie.tile(1, 2)
Expand Down
12 changes: 7 additions & 5 deletions test/unit_tests/chess_compiler_tests_aie2/00_itsalive/aie.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
//===----------------------------------------------------------------------===//

// REQUIRES: valid_xchess_license
// REQUIRES: 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

// These cases mix chess and peano, which is not supported.
// DONTREQUIRES: peano
// DONTRUN: %PYTHON aiecc.py --no-unified --no-xchesscc --xbridge %s
// DONTRUN: %PYTHON aiecc.py --unified --no-xchesscc --xbridge %s
// DONTRUN: %PYTHON aiecc.py --no-unified --xchesscc --no-xbridge %s
// DONTRUN: %PYTHON aiecc.py --unified --xchesscc --no-xbridge %s

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