Skip to content

Commit

Permalink
Make the same NVidia magic devices available in compilation too. May …
Browse files Browse the repository at this point in the history
…help nvc++ compilation time as it will be able to detect the target GPU (#4361)
  • Loading branch information
mattgodbolt committed Nov 29, 2022
1 parent 2455e41 commit 31cc95a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions etc/nsjail/execute.cfg
Expand Up @@ -132,6 +132,34 @@ mount {
is_bind: true
}

mount {
src: "/dev/nvidia0"
dst: "/dev/nvidia0"
is_bind: true
mandatory: false
}

mount {
src: "/dev/nvidiactl"
dst: "/dev/nvidiactl"
is_bind: true
mandatory: false
}

mount {
src: "/dev/nvidia-modeset"
dst: "/dev/nvidia-modeset"
is_bind: true
mandatory: false
}

mount {
src: "/dev/nvidia-uvm"
dst: "/dev/nvidia-uvm"
is_bind: true
mandatory: false
}

mount {
dst: "/proc"
fstype: "proc"
Expand Down

0 comments on commit 31cc95a

Please sign in to comment.