@@ -1671,7 +1671,7 @@ func getPackageGUID(orchestratorType string, orchestratorVersion string, masterC
1671
1671
func getGPUDriversInstallScript (profile * api.AgentPoolProfile ) string {
1672
1672
1673
1673
// latest version of the drivers. Later this parameter could be bubbled up so that users can choose specific driver versions.
1674
- dv := "384.111"
1674
+ dv := "384.111"
1675
1675
dest := "/usr/local/nvidia"
1676
1676
1677
1677
/*
@@ -1686,18 +1686,18 @@ func getGPUDriversInstallScript(profile *api.AgentPoolProfile) string {
1686
1686
- cd %s` , dest , dest )
1687
1687
1688
1688
/*
1689
- Download the .run file from NVIDIA.
1690
- Nvidia libraries are always install in /usr/lib/x86_64-linux-gnu, and there is no option in the run file to change this.
1691
- Instead we use Overlayfs to move the newly installed libraries under /usr/local/nvidia/lib64
1689
+ Download the .run file from NVIDIA.
1690
+ Nvidia libraries are always install in /usr/lib/x86_64-linux-gnu, and there is no option in the run file to change this.
1691
+ Instead we use Overlayfs to move the newly installed libraries under /usr/local/nvidia/lib64
1692
1692
*/
1693
- installScript += fmt .Sprintf (`
1693
+ installScript += fmt .Sprintf (`
1694
1694
- curl -fLS https://us.download.nvidia.com/tesla/%s/NVIDIA-Linux-x86_64-%s.run -o nvidia-drivers-%s
1695
1695
- mkdir -p lib64 overlay-workdir
1696
1696
- sudo mount -t overlay -o lowerdir=/usr/lib/x86_64-linux-gnu,upperdir=lib64,workdir=overlay-workdir none /usr/lib/x86_64-linux-gnu` , dv , dv , dv )
1697
1697
1698
1698
/*
1699
- Install the drivers and update /etc/ld.so.conf.d/nvidia.conf which will make the libraries discoverable through $LD_LIBRARY_PATH.
1700
- Run nvidia-smi to test the installation, unmount overlayfs and restard kubelet (GPUs are only discovered when kubelet starts)
1699
+ Install the drivers and update /etc/ld.so.conf.d/nvidia.conf which will make the libraries discoverable through $LD_LIBRARY_PATH.
1700
+ Run nvidia-smi to test the installation, unmount overlayfs and restard kubelet (GPUs are only discovered when kubelet starts)
1701
1701
*/
1702
1702
installScript += fmt .Sprintf (`
1703
1703
- sudo sh nvidia-drivers-%s --silent --accept-license --no-drm --utility-prefix="%s" --opengl-prefix="%s"
0 commit comments