Skip to content

XDNA Driver

Maksim Levental edited this page Oct 3, 2024 · 2 revisions

Linux

Shim test

  1. Download both binaries.tar.gz and dpu-tests.tar.gz from e.g. NPU1_1x4_TESTCASES from GEnt/TurinAI/amd-aie/tools/npu/npu_info.json;
    • unpack binaries.tar.gz to just npu1_workspace;
    • unpack the specific model test case listed/specified in npu_info.json (e.g., test_cases/conv_case_6) to npu1_workspace/data;
  2. copy GEnt/TurinAI/amd-aie/local_shim_test_data to root of OSS repo;
  3. 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;
  4. 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.

Clone this wiki locally