From 01f554a2d13036d79316cc0c86f4ea75eea03a6b Mon Sep 17 00:00:00 2001 From: Ryan Anderson Date: Wed, 2 Aug 2023 12:26:05 -0400 Subject: [PATCH] Set --no-cc-version-check flag to build on ubuntu 22.04 (#2389) The gcc compiler used to build the kernel on Ubuntu 22.04 images we use is 11.3, but the gcc apt package seems to install 11.4 for use in the terminal. This flag will prevent the NVIDIA driver from failing to install due to the minor version difference in gcc. --- .../resources/nvidia_driver/partial/_nvidia_driver_common.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/aws-parallelcluster-platform/resources/nvidia_driver/partial/_nvidia_driver_common.rb b/cookbooks/aws-parallelcluster-platform/resources/nvidia_driver/partial/_nvidia_driver_common.rb index bba7b62377..63e2788901 100644 --- a/cookbooks/aws-parallelcluster-platform/resources/nvidia_driver/partial/_nvidia_driver_common.rb +++ b/cookbooks/aws-parallelcluster-platform/resources/nvidia_driver/partial/_nvidia_driver_common.rb @@ -61,13 +61,14 @@ end # Install driver + # TODO remove --no-cc-version-check when we can update ubuntu 22 images bash 'nvidia.run advanced' do user 'root' group 'root' cwd '/tmp' code <<-NVIDIA set -e - ./nvidia.run --silent --dkms --disable-nouveau + ./nvidia.run --silent --dkms --disable-nouveau --no-cc-version-check rm -f /tmp/nvidia.run NVIDIA creates '/usr/bin/nvidia-smi'