Skip to content

Commit 2c9ba7b

Browse files
committed
Add package to build Nvidia driver on AL2 Kernel 5
Signed-off-by: Luca Carrogu <[email protected]>
1 parent 3bd2200 commit 2c9ba7b

File tree

1 file changed

+4
-0
lines changed
  • cookbooks/aws-parallelcluster-install/recipes

1 file changed

+4
-0
lines changed

cookbooks/aws-parallelcluster-install/recipes/nvidia.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
# Amazon linux 2 with Kernel 5 need to set CC to /usr/bin/gcc10-gcc using dkms override
3636
if platform?('amazon') && node['kernel']['release'].split('.')[0].to_i == 5
37+
package "gcc10" do
38+
retries 10
39+
retry_delay 5
40+
end
3741
cookbook_file 'dkms/nvidia.conf' do
3842
source 'dkms/nvidia.conf'
3943
path '/etc/dkms/nvidia.conf'

0 commit comments

Comments
 (0)