Skip to content

Commit

Permalink
Fix more tests (#1794)
Browse files Browse the repository at this point in the history
Co-authored-by: Erika Hunhoff <erika.hunhoff@amd.com>
  • Loading branch information
fifield and hunhoffe authored Sep 25, 2024
1 parent 352996f commit 5dcd881
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// REQUIRES: ryzen_ai
//
// RUN: %python aiecc.py --no-aiesim --aie-generate-cdo --aie-generate-npu --aie-generate-xclbin --no-compile-host --xclbin-name=aie.xclbin --npu-insts-name=insts.txt %S/aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++
// 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!
//
Expand Down
2 changes: 1 addition & 1 deletion 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 @@ -4,7 +4,7 @@
// REQUIRES: ryzen_ai
//
// RUN: %python aiecc.py --no-aiesim --aie-generate-cdo --aie-generate-npu --aie-generate-xclbin --no-compile-host --xclbin-name=aie.xclbin --npu-insts-name=insts.txt %S/aie.mlir
// RUN: clang %S/test.cpp -o test.exe -std=c++11 -Wall %xrt_flags -lrt -lstdc++
// 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!

Expand Down
1 change: 1 addition & 0 deletions test/npu-xrt/matrix_transpose/aie2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from aie.dialects.aie import *
from aie.dialects.aiex import *
from aie.ir import MemRefType
from aie.extras.dialects.ext.scf import _for as range_

matrix_rows = 7
Expand Down
2 changes: 1 addition & 1 deletion test/npu-xrt/nd_memcpy_transforms/aie2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from aie.dialects.aie import *
from aie.dialects.aiex import *
from aie.extras.dialects.ext.scf import _for as range_

from aie.ir import MemRefType

dtype = T.i16
a_len = 8
Expand Down
2 changes: 1 addition & 1 deletion test/npu-xrt/sync_task_complete_token/aie2.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def device_body():
def core_body():
for _ in range_(0xFFFFFFFF):
elem_output = fifo_output.acquire(ObjectFifoPort.Produce, 1)
zero = constant(T.i32(), 0)
zero = constant(0)
memref.store(zero, elem_output, [0])
for _ in range_(16):
elem_input = fifo_input.acquire(ObjectFifoPort.Consume, 1)
Expand Down
2 changes: 1 addition & 1 deletion test/npu-xrt/sync_task_complete_token_bd_chaining/aie2.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def device_body():
def core_body():
for _ in range_(0xFFFFFFFF):
elem_output = fifo_output.acquire(ObjectFifoPort.Produce, 1)
zero = constant(T.i32(), 0)
zero = constant(0)
memref.store(zero, elem_output, [0])
for _ in range_(16):
elem_input = fifo_input.acquire(ObjectFifoPort.Consume, 1)
Expand Down

0 comments on commit 5dcd881

Please sign in to comment.