Skip to content

Commit

Permalink
Setup Nvidia Driver for G2 instance type
Browse files Browse the repository at this point in the history
Setup Nvidia Driver to work with G2 instance type when DCV is enabled

Signed-off-by: Luca Carrogu <[email protected]>
  • Loading branch information
lukeseawalker committed Feb 25, 2020
1 parent 77f592a commit aff412c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/dcv_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ def allow_gpu_acceleration

# Update the xorg.conf to set up NVIDIA drivers.
# NOTE: --enable-all-gpus parameter is needed to support servers with more than one NVIDIA GPU.
nvidia_xconfig_command = "nvidia-xconfig --preserve-busid --enable-all-gpus"
if node['ec2']['instance_type'].start_with?("g2.")
nvidia_xconfig_command = nvidia_xconfig_command + " --use-display-device=none"
end
execute "Set up Nvidia drivers for X configuration" do
user 'root'
command "nvidia-xconfig --preserve-busid --enable-all-gpus"
command nvidia_xconfig_command
end

# dcvgl package must be installed after NVIDIA and before starting up X
Expand Down

0 comments on commit aff412c

Please sign in to comment.