Skip to content
Snippets Groups Projects
Commit eec01db2 authored by Giuseppe Attardi's avatar Giuseppe Attardi
Browse files

Update 1_install_cuda.sh

parent 1d4e9389
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# Installation script for CUDA and drivers on Ubuntu, by Giuseppe Attardi (attardi@di.unipi.it)
# Derived from:
# https://github.com/deeplearningparis/dl-machine/blob/master/scripts/install-deeplearning-libraries.sh
# TODO
# Make this more parametric.
###################################
# Ubuntu Install script for:
# - Nvidia graphic drivers
# - Cuda 9.0 or 9.1
# - Cuda 10.0
# - cuDNN 7
###################################
......@@ -27,12 +22,13 @@ else
echo "Unsopported OS release"
exit 2
fi
MACHINE = `uname -m`
MACHINE = `uname -m`
ARCH = 'uname -p'
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y git wget linux-image-generic build-essential unzip
apt update
apt install -y git wget linux-image-generic build-essential unzip
# nvidia graphics drivers 384
# see http://docs.nvidia.com/deeplearning/sdk/cudnn-install/
......@@ -53,11 +49,7 @@ apt -y install nvidia-384
export ROOT_URL=http://developer.download.nvidia.com/compute/cuda/repos
# Cuda 9.0 (TensorFlow 1.5 requires this)
# export CUDA_VERSION=9.0.176-1
# Cuda 9.1
# export CUDA_VERSION=9.1.85-1
# Cuda 9.2
# Cuda 10.0
export CUDA_VERSION=9.2.148-1
# see: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment