Skip to content

Instantly share code, notes, and snippets.

@charly-vega
Forked from Mikulas/p2-instance-setup.sh
Last active November 28, 2018 17:23
Show Gist options
  • Save charly-vega/6b1cd7112fcad9404e90aaa98f05d8d1 to your computer and use it in GitHub Desktop.
Save charly-vega/6b1cd7112fcad9404e90aaa98f05d8d1 to your computer and use it in GitHub Desktop.
sudo yum update -y
# load the latest kernel version, really dont skip this
sudo reboot
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances.html#install-nvidia-driver
sudo yum install -y gcc kernel-devel-`uname -r`
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.66/NVIDIA-Linux-x86_64-375.66.run
sudo /bin/bash ./NVIDIA-Linux-x86_64-375.66.run --no-drm
# load the kernel update
sudo reboot
# configure the GPU settings to be persistent
sudo nvidia-smi -pm 1
# disable the autoboost feature for all GPUs on the instance
sudo nvidia-smi --auto-boost-default=0
# set all GPU clock speeds to their maximum frequency
sudo nvidia-smi -ac 2505,875
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment