File tree Expand file tree Collapse file tree
metro-ai-suite/sensor-fusion-for-traffic-management/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,13 @@ if [[ -n "$RENDER_GROUP_ID" ]]; then
1515fi
1616USER_GROUP_ID=$( id -g)
1717echo $EXTRA_PARAMS
18-
18+ MEI_DEVICES=" "
19+ for device in /dev/mei* ; do
20+ if [ -e " $device " ]; then
21+ MEI_DEVICES=" $MEI_DEVICES --device $device "
22+ echo " Found MEI device: $device "
23+ fi
24+ done
1925
2026if [[ " $NPU_ON " == " true" ]]; then
2127 echo " Running with NPU support"
@@ -28,6 +34,7 @@ if [[ "$NPU_ON" == "true" ]]; then
2834 --device /dev/dri \
2935 --group-add $VIDEO_GROUP_ID --group-add $RENDER_GROUP_ID \
3036 --device /dev/accel \
37+ $MEI_DEVICES \
3138 --group-add $( stat -c " %g" /dev/accel/accel* | sort -u | head -n 1) \
3239 --env ZE_ENABLE_ALT_DRIVERS=libze_intel_vpu.so \
3340 -e DISPLAY=$DISPLAY \
4552 -e https_proxy=${https_proxy} \
4653 --cap-add=SYS_ADMIN \
4754 --device /dev/dri \
55+ $MEI_DEVICES \
4856 --group-add $VIDEO_GROUP_ID --group-add $RENDER_GROUP_ID \
4957 -e DISPLAY=$DISPLAY \
5058 -e QT_X11_NO_MITSHM=1 \
You can’t perform that action at this time.
0 commit comments