Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nvidia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
deploy
nvidia
Commits
eec01db2
Commit
eec01db2
authored
6 years ago
by
Giuseppe Attardi
Browse files
Options
Downloads
Patches
Plain Diff
Update 1_install_cuda.sh
parent
1d4e9389
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
1_install_cuda.sh
+6
-14
6 additions, 14 deletions
1_install_cuda.sh
with
6 additions
and
14 deletions
1_install_cuda.sh
+
6
−
14
View file @
eec01db2
#!/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/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment