This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Swap should take place on the Instance Storage (ephemeral) disk and not an EBS device. | |
# Check that your ephemeral storage is mounted sudo mount /dev/xvda2 /mnt | |
sudo dd if=/dev/zero of=/mnt/swapfile bs=1M count=16348 # create 16G swap | |
# Permission | |
sudo chown root:root /mnt/swapfile | |
sudo chmod 600 /mnt/swapfile | |
# Activate swapfile | |
sudo mkswap /mnt/swapfile | |
sudo swapon /mnt/swapfile | |
# add this to /etc/fstab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download cudnn from https://developer.nvidia.com/cudnn | |
# untar archive | |
tar -zxf cudnn-7.5-linux-x64-v5.1.tgz # cuda 7.5 cudnn 5.1 | |
sudo cp -P include/cudnn.h /usr/include | |
sudo cp -P lib64/libcudnn* /usr/lib/x86_64-linux-gnu/ | |
sudo chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn* |
OlderNewer