Added NVIDIA Jetson devices

This commit is contained in:
Héctor Molinero Fernández
2021-06-01 20:11:24 +02:00
parent 809e88638e
commit 435672fb10
2 changed files with 2 additions and 2 deletions

2
run.sh
View File

@@ -32,7 +32,7 @@ if containerExists "${CONTAINER_NAME:?}"; then
fi
CONTAINER_DEVICES=$(find /dev/ -mindepth 1 -maxdepth 1 \
'(' -name 'dri' -or -name 'vga_arbiter' -or -name 'nvidia*' ')' \
'(' -name 'dri' -or -name 'vga_arbiter' -or -name 'nvidia*' -or -name 'nvhost*' -or -name 'nvmap' ')' \
-exec printf -- '--device %s:%s\n' '{}' '{}' ';' \
)