Skip to content

Instantly share code, notes, and snippets.

View ericfourrier's full-sized avatar
🦉
Building neat tools to secure cloud and source code

Eric Fourrier ericfourrier

🦉
Building neat tools to secure cloud and source code
View GitHub Profile
# 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
# 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*