Skip to content

Commit

Permalink
Alternative packer setup for gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Nov 15, 2022
1 parent a55104e commit eb84bfc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions setup-gpu-node-devices.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

set -euo pipefail

if /sbin/modprobe nvidia; then
# Count the number of NVIDIA controllers found.
NVDEVS=$(lspci | grep -i NVIDIA)
Expand Down
1 change: 1 addition & 0 deletions setup-gpu-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bash "${DIR}/setup-node.sh"
pushd /tmp
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
sh cuda_11.8.0_520.61.05_linux.run --silent --driver
rm cuda_11.8.0_520.61.05_linux.run
popd

echo -e "blacklist nouveau\noptions nouveau modeset=0\n" > /etc/modprobe.d/blacklist-nouveau.conf
Expand Down

0 comments on commit eb84bfc

Please sign in to comment.