Skip to content

Instantly share code, notes, and snippets.

@timjp87
Created February 16, 2016 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timjp87/39b427b42eab6742b1c6 to your computer and use it in GitHub Desktop.
Save timjp87/39b427b42eab6742b1c6 to your computer and use it in GitHub Desktop.
post_upgrade() {
echo "If you run into trouble with CUDA not being available, run nvidia-modprobe first."
}
post_install() {
getent group nvidia-persistenced &>/dev/null || groupadd -g 143 nvidia-persistenced
getent passwd nvidia-persistenced &>/dev/null || useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced
post_upgrade
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment