Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit f2c074b

Browse files
committed
linting engine.go
1 parent 5c9f06a commit f2c074b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/acsengine/engine.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ func getPackageGUID(orchestratorType string, orchestratorVersion string, masterC
16711671
func getGPUDriversInstallScript(profile *api.AgentPoolProfile) string {
16721672

16731673
// 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"
16751675
dest := "/usr/local/nvidia"
16761676

16771677
/*
@@ -1686,18 +1686,18 @@ func getGPUDriversInstallScript(profile *api.AgentPoolProfile) string {
16861686
- cd %s`, dest, dest)
16871687

16881688
/*
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
16921692
*/
1693-
installScript += fmt.Sprintf(`
1693+
installScript += fmt.Sprintf(`
16941694
- curl -fLS https://us.download.nvidia.com/tesla/%s/NVIDIA-Linux-x86_64-%s.run -o nvidia-drivers-%s
16951695
- mkdir -p lib64 overlay-workdir
16961696
- 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)
16971697

16981698
/*
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)
17011701
*/
17021702
installScript += fmt.Sprintf(`
17031703
- sudo sh nvidia-drivers-%s --silent --accept-license --no-drm --utility-prefix="%s" --opengl-prefix="%s"

0 commit comments

Comments
 (0)