-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathrun_npu1_peano.lit
More file actions
14 lines (14 loc) · 1.13 KB
/
run_npu1_peano.lit
File metadata and controls
14 lines (14 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// (c) Copyright 2025 Advanced Micro Devices, Inc.
// SPDX-License-Identifier: MIT
//
// REQUIRES: ryzen_ai_npu1, peano
// RUN: mkdir -p test_npu1_peano
// RUN: cd test_npu1_peano
// RUN: %python %S/aie.py --device npu1
// RUN: export PEANO_INSTALL_DIR=%PEANO_INSTALL_DIR
// RUN: aie-opt -aie-generate-column-control-overlay="route-shim-to-tile-ctrl=true" %S/base_npu1.mlir -o base_overlay.mlir
// RUN: %python aiecc.py --no-xchesscc --no-xbridge --device-name=base --aie-generate-xclbin --xclbin-name=base.xclbin base_overlay.mlir
// RUN: aie-opt -aie-generate-column-control-overlay="route-shim-to-tile-ctrl=true" aie.mlir -o aie_overlay.mlir
// RUN: %python aiecc.py --no-xchesscc --no-xbridge --device-name=forward_0 --aie-generate-ctrlpkt --ctrlpkt-name=ctrlpkt.bin --ctrlpkt-dma-seq-name=ctrlpkt_dma_seq.bin --aie-generate-npu-insts --npu-insts-name=aie_run_seq.bin aie_overlay.mlir
// RUN: g++-13 %S/test.cpp -o test.exe -std=c++23 -Wall %test_utils_flags %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem
// RUN: %run_on_npu1% ./test.exe -x base.xclbin -k MLIR_AIE -i aie_run_seq.bin -c ctrlpkt_dma_seq.bin -p ctrlpkt.bin -v 2