From 11b17b218884f86ddefb24b83e427a0a9a438adc Mon Sep 17 00:00:00 2001 From: Stephen Neuendorffer Date: Wed, 10 Apr 2024 11:26:51 -0700 Subject: [PATCH] Use unsecure loading when loading xclbin files This avoids the need to be root when running designs. --- utils/run_on_ipu.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/run_on_ipu.sh b/utils/run_on_ipu.sh index b0728d34fe..d529573e73 100755 --- a/utils/run_on_ipu.sh +++ b/utils/run_on_ipu.sh @@ -20,6 +20,8 @@ if [[ -d /lib/firmware/amdnpu/1502_00 ]]; then FIRMWARE_DIR=/lib/firmware/amdnpu/1502_00 NPU_DEVICE=NPU1 fi +# Don't require root. +export XRT_HACK_UNSECURE_LOADING_XCLBIN=1 XRT_DIR=/opt/xilinx/xrt source $XRT_DIR/setup.sh