We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f592a commit aff412cCopy full SHA for aff412c
recipes/dcv_config.rb
@@ -32,9 +32,13 @@ def allow_gpu_acceleration
32
33
# Update the xorg.conf to set up NVIDIA drivers.
34
# NOTE: --enable-all-gpus parameter is needed to support servers with more than one NVIDIA GPU.
35
+ nvidia_xconfig_command = "nvidia-xconfig --preserve-busid --enable-all-gpus"
36
+ if node['ec2']['instance_type'].start_with?("g2.")
37
+ nvidia_xconfig_command = nvidia_xconfig_command + " --use-display-device=none"
38
+ end
39
execute "Set up Nvidia drivers for X configuration" do
40
user 'root'
- command "nvidia-xconfig --preserve-busid --enable-all-gpus"
41
+ command nvidia_xconfig_command
42
end
43
44
# dcvgl package must be installed after NVIDIA and before starting up X
0 commit comments