Skip to content

Commit

Permalink
interfaces/opengl: enable use of nvidia container toolkit CDI config …
Browse files Browse the repository at this point in the history
…generation (#13847)

The nvidia container toolkit needs to traverse the top level libs
directory in order to discover the libraries and generate a CDI config.
  • Loading branch information
jocado committed Apr 23, 2024
1 parent 61572ad commit 2cb62c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interfaces/builtin/opengl.go
Expand Up @@ -48,6 +48,9 @@ const openglConnectedPlugAppArmor = `
# libdrm data files
/usr/share/libdrm/amdgpu.ids r,
# The nvidia container toolkit needs to traverse the top level libs directory
# in order to discover the libraries and generate a CDI config
/var/lib/snapd/hostfs/{,usr/}lib{,32,64,x32}/{,@{multiarch}/} r,
# Bi-arch distribution nvidia support
/var/lib/snapd/hostfs/{,usr/}lib{,32,64,x32}/{,@{multiarch}/}libcuda*.so{,.*} rm,
/var/lib/snapd/hostfs/{,usr/}lib{,32,64,x32}/{,@{multiarch}/}libnvidia*.so{,.*} rm,
Expand Down

0 comments on commit 2cb62c4

Please sign in to comment.