Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield committed Aug 17, 2023
1 parent ce91afa commit 1036b91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions test/benchmarks/01_DDR_SHIM_LM_FillRate/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ int main(int argc, char *argv[]) {
mlir_aie_configure_dmas(_xaie);

ext_mem_model_t buf0;
<<<<<<< HEAD
int *ddr_ptr = mlir_aie_mem_alloc(buf0, DMA_COUNT);
for(int i=0; i<DMA_COUNT; i++) {
=======
int *ddr_ptr = mlir_aie_mem_alloc(_xaie, buf0, DMA_COUNT);
for (int i = 0; i < DMA_COUNT; i++) {
>>>>>>> 0df6dfa7... fixup! dos2unix
*(ddr_ptr + i) = i + 1;
}
mlir_aie_sync_mem_dev(buf0);
Expand Down
2 changes: 1 addition & 1 deletion test/benchmarks/02_LM_SHIM_DDR_FillRate/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
mlir_aie_configure_dmas(_xaie);

ext_mem_model_t buf0;
int *ddr_ptr = mlir_aie_mem_alloc(_xaie, buf0, DMA_COUNT);
int *ddr_ptr = mlir_aie_mem_alloc(buf0, DMA_COUNT);
for (int i = 0; i < DMA_COUNT; i++) {
*(ddr_ptr + i) = 0xdeadbeef;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//
//===----------------------------------------------------------------------===//

// RUN: aiecc.py --sysroot=%VITIS_SYSROOT% --host-target=aarch64-linux-gnu %s -I%aie_runtime_lib% %extraAieCcFlags% %aie_runtime_lib%/test_library.cpp %S/test.cpp -o test.elf
// RUN: aiecc.py %VitisSysrootFlag% --host-target=%aieHostTargetTriplet% %s -I%aie_runtime_lib%/test_lib/include %extraAieCcFlags% %S/test.cpp -o test.elf -L%aie_runtime_lib%/test_lib/lib -ltest_lib
// RUN: %run_on_board ./test.elf

module @test27_simple_shim_dma_single_lock {
Expand Down

0 comments on commit 1036b91

Please sign in to comment.