Skip to content

Commit

Permalink
--gpu: share /dev/nvhost* /dev/nvmap #290
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Oct 20, 2020
1 parent e1526f3 commit 42cbdf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ setup_gpu() { # option --gpu: share /dev/dri and check nvidia
# check device files
while read -r Gpudevice ; do
store_runoption volume "$Gpudevice"
done < <(find /dev/dri /dev/nvidia* /dev/vga_arbiter -maxdepth 0 2>/dev/null ||:)
done < <(find /dev/dri /dev/nvidia* /dev/vga_arbiter /dev/nvhost* /dev/nvmap -maxdepth 0 2>/dev/null ||:)

[ -z "$Nvidiaversion" ] && return 0

Expand Down Expand Up @@ -5597,6 +5597,7 @@ create_dockerrc() { ### create dockerrc: This script runs as root (o
To allow this ENTRYPOINT, run x11docker with option --init=none.\""
echo " Entrypoint="
echo "}"
#echo "Exec=exec"
;;
s6-overlay)
echo "[ \"\$Entrypoint\" = '/init' ] && {"
Expand Down

0 comments on commit 42cbdf3

Please sign in to comment.