Enable nvidia persistence mode on instance reboots

This commit is contained in:
Michael Vines 2019-09-21 10:45:16 -07:00
parent ab60c578b9
commit 4c49566a89
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 14 additions and 8 deletions

View File

@ -607,7 +607,14 @@ EOF
set -ex
if [[ -f /solana-scratch/.instance-startup-complete ]]; then
# Skip on instance reboot
$(
cd "$here"/scripts/
if "$enableGpu"; then
cat enable-nvidia-persistence-mode.sh
fi
)
# Skip most setup on instance reboot
exit 0
fi
@ -663,7 +670,6 @@ $(
if [[ -n $fullNodeAdditionalDiskSizeInGb ]]; then
cat mount-additional-disk.sh
fi
)
cat > /etc/motd <<EOM