Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
684c0470
Commit
684c0470
authored
6 years ago
by
Gin Tan (Monash University)
Browse files
Options
Downloads
Patches
Plain Diff
Restore nvidia installation
parent
02e2a3f3
No related branches found
Branches containing commit
No related tags found
1 merge request
!176
Nvidia
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/gpu/tasks/main.yml
+8
-2
8 additions, 2 deletions
roles/gpu/tasks/main.yml
with
8 additions
and
2 deletions
roles/gpu/tasks/main.yml
+
8
−
2
View file @
684c0470
...
...
@@ -102,6 +102,12 @@
become_user
:
root
when
:
uninstall_driver
-
name
:
get nvidia driver
get_url
:
url=http://consistency0/src/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run dest=/tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
become
:
true
become_user
:
root
when
:
install_driver
#- name: Copy boot file
# template: src=grub.conf.j2 dest=/boot/grub/grub.conf
# sudo: true
...
...
@@ -114,8 +120,8 @@
template
:
src=xserver.j2 dest=/etc/pam.d/xserver
sudo
:
true
-
name
:
Install driver with yum
shell
:
yum -y install cuda-drivers xorg-x11-drv-nvidia
-
name
:
build nvidia driver
shell
:
chmod 755 /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run; /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run --silent
sudo
:
true
when
:
install_driver
...
...
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
c630343f
·
4 years ago
mentioned in commit
c630343f
mentioned in commit c630343f47da77c0a17d7472d0514892a0c4c6b4
Toggle commit list
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