Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for provisioning nvidia gpu agents #211

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
be3ad7c
Implement agent_gpu profile extending agent
j-rivero Jan 25, 2019
780f9c4
Fix jenkins username
j-rivero Jan 25, 2019
7908d42
Fixes to get real support on AWS machines
j-rivero Jan 25, 2019
d81a613
Be sure that xorg.conf is not overwritten
j-rivero Jan 31, 2019
f49be15
Fix syntax typo
j-rivero Feb 5, 2019
95add6e
Do not install ubuntu-drivers-common
j-rivero Feb 11, 2019
5840a7a
Use require in lightdm service
j-rivero Feb 11, 2019
b8a27f6
Need to restart the service
j-rivero Feb 11, 2019
cf8f873
Explicit order for lightdm
j-rivero Feb 11, 2019
d092226
Add debug to the script
j-rivero Feb 25, 2019
2c94220
Update nvidia-docker2 package configuration.
nuclearsandwich Apr 3, 2019
cc7d29e
Avoid use of legacy 'agent_files' module.
nuclearsandwich Apr 3, 2019
067f994
Remove unneeded ordering arrows.
nuclearsandwich Apr 3, 2019
1ce7cb7
Notify service directly rather than via exec.
nuclearsandwich Apr 3, 2019
715f343
Only install linux-aws when on an EC2 instance.
nuclearsandwich Apr 3, 2019
03d45d9
Remove double-declared dependency.
nuclearsandwich Apr 3, 2019
d17584c
Prefer using require to before.
nuclearsandwich Apr 3, 2019
8724994
Transform xorg.conf into a template to get busid value from nvidia-xc…
j-rivero Apr 5, 2019
18e0640
Fix facter implementation
j-rivero Apr 8, 2019
927037d
value needs quotes
j-rivero Apr 8, 2019
3f32d61
Change busid by gpu_device_bus_id
j-rivero Apr 26, 2019
b92729a
Revert the use of facter to get the nvidia-xconfig value
j-rivero May 3, 2019
220a30f
remove debug touch command
j-rivero Sep 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ Section "Monitor"
Option "DPMS"
EndSection

# jrivero: be sure of using always the right BusID
# can be obtained by: nvidia-xconfig --query-gpu-info
# The current BusID is the one corresponding to GRID K520
# at AWS machines of the g2 series.
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GRID K520"
BusID "PCI:0:3:0"
BusID <%=@busid%>
EndSection

Section "Screen"
Expand Down
4 changes: 3 additions & 1 deletion modules/profile/manifests/jenkins/agent_gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
ensure => installed,
}

$busid = generate('nvidia-xconfig --query-gpu-info | grep BusID | sed "s/.*PCI:/PCI:/g"')

file { '/etc/X11/xorg.conf':
source => 'puppet:///modules/profile/jenkins/agent_gpu/etc/X11/xorg.conf',
content => template('agent_files/xorg.conf.erb'),
nuclearsandwich marked this conversation as resolved.
Show resolved Hide resolved
mode => '0744',
require => [
Package[lightdm],
Expand Down