-
Notifications
You must be signed in to change notification settings - Fork 30
XDNA Driver
Maksim Levental edited this page Oct 3, 2024
·
2 revisions
- Download both
binaries.tar.gz
anddpu-tests.tar.gz
from e.g.NPU1_1x4_TESTCASES
fromGEnt/TurinAI/amd-aie/tools/npu/npu_info.json
;- unpack
binaries.tar.gz
to justnpu1_workspace
; - unpack the specific
model
test case listed/specified innpu_info.json
(e.g.,test_cases/conv_case_6
) tonpu1_workspace/data
;
- unpack
- copy
GEnt/TurinAI/amd-aie/local_shim_test_data
to root of OSS repo; - fiddle with the paths in
-
xrt/src/runtime_src/core/common/module_loader.cpp::shim_path
; -
test/shim_test/dev_info.cpp::get_xclbin_workspace
; -
test/shim_test/shim_test.cpp::set_xrt_path
;
-
- do a
sed -i 's/32000/10/g' test/shim_test/shim_test.cpp
to speed up tests.
shim_test.elf
doesn't depend on the shim itself 🤦 so be sure to rebuild all each time.