Skip to content

Commit a45d0d9

Browse files
authored
Merge pull request #57705 from vermagit/patch-2
Document settings
2 parents f314080 + 40887ae commit a45d0d9

File tree

1 file changed

+32
-21
lines changed

1 file changed

+32
-21
lines changed

articles/virtual-machines/extensions/hpccompute-gpu-linux.md

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,33 @@ ms.devlang: na
1313
ms.topic: article
1414
ms.tgt_pltfrm: vm-linux
1515
ms.workload: infrastructure-services
16-
ms.date: 08/20/2018
16+
ms.date: 11/15/2018
1717
ms.author: roiyz
1818

1919
---
2020
# NVIDIA GPU Driver Extension for Linux
2121

2222
## Overview
2323

24-
This extension installs NVIDIA GPU drivers on Linux N-series VMs. Depending on the VM family, the extension installs CUDA or GRID drivers. When you install NVIDIA drivers using this extension, you are accepting and agreeing to the terms of the NVIDIA End-User License Agreement. During the installation process, your virtual machine may reboot to complete the driver setup.
24+
This extension installs NVIDIA GPU drivers on Linux N-series VMs. Depending on the VM family, the extension installs CUDA or GRID drivers. When you install NVIDIA drivers using this extension, you are accepting and agreeing to the terms of the [NVIDIA End-User License Agreement](https://go.microsoft.com/fwlink/?linkid=874330). During the installation process, the VM may reboot to complete the driver setup.
2525

2626
An extension is also available to install NVIDIA GPU drivers on [Windows N-series VMs](hpccompute-gpu-windows.md).
2727

28-
Terms of NVIDIA End-User License Agreement are located here - https://go.microsoft.com/fwlink/?linkid=874330
29-
3028
## Prerequisites
3129

3230
### Operating system
3331

34-
This extension supports the following OSs:
32+
This extension supports the following OS distros, depending on driver support for specific OS version.
3533

3634
| Distribution | Version |
3735
|---|---|
38-
| Linux: Ubuntu | 16.04 LTS |
39-
| Linux: Red Hat Enterprise Linux | 7.3, 7.4 |
40-
| Linux: CentOS | 7.3, 7.4 |
36+
| Linux: Ubuntu | 16.04 LTS, 18.04 LTS |
37+
| Linux: Red Hat Enterprise Linux | 7.3, 7.4, 7.5 |
38+
| Linux: CentOS | 7.3, 7.4, 7.5 |
4139

4240
### Internet connectivity
4341

44-
The Microsoft Azure Extension for NVIDIA GPU Drivers requires that the target virtual machine is connected to the internet and have access.
42+
The Microsoft Azure Extension for NVIDIA GPU Drivers requires that the target VM is connected to the internet and have access.
4543

4644
## Extension schema
4745

@@ -59,22 +57,32 @@ The following JSON shows the schema for the extension.
5957
"properties": {
6058
"publisher": "Microsoft.HpcCompute",
6159
"type": "NvidiaGpuDriverLinux",
62-
"typeHandlerVersion": "1.1",
60+
"typeHandlerVersion": "1.2",
6361
"autoUpgradeMinorVersion": true,
6462
"settings": {
6563
}
6664
}
6765
}
6866
```
6967

70-
### Property values
68+
### Properties
7169

7270
| Name | Value / Example | Data Type |
7371
| ---- | ---- | ---- |
7472
| apiVersion | 2015-06-15 | date |
7573
| publisher | Microsoft.HpcCompute | string |
7674
| type | NvidiaGpuDriverLinux | string |
77-
| typeHandlerVersion | 1.1 | int |
75+
| typeHandlerVersion | 1.2 | int |
76+
77+
### Settings
78+
79+
All settings are optional. The default behavior is to not update the kernel if not required for driver installation, install the latest supported driver and the CUDA toolkit (as applicable).
80+
81+
| Name | Description | Default Value | Valid Values | Data Type |
82+
| ---- | ---- | ---- | ---- | ---- |
83+
| updateOS | Update the kernel even if not required for driver installation | false | true, false | boolean |
84+
| driverVersion | NV: GRID driver version<br> NC/ND: CUDA toolkit version. The latest drivers for the chosen CUDA are installed automatically. | latest | GRID: "390.75", "390.57", "390.42"<br> CUDA: "10.0.130", "9.2.88", "9.1.85" | string |
85+
| installCUDA | Install CUDA toolkit. Only relevant for NC/ND series VMs. | true | true, false | boolean |
7886

7987

8088
## Deployment
@@ -100,7 +108,7 @@ The following example assumes the extension is nested inside the virtual machine
100108
"properties": {
101109
"publisher": "Microsoft.HpcCompute",
102110
"type": "NvidiaGpuDriverLinux",
103-
"typeHandlerVersion": "1.1",
111+
"typeHandlerVersion": "1.2",
104112
"autoUpgradeMinorVersion": true,
105113
"settings": {
106114
}
@@ -118,21 +126,25 @@ Set-AzureRmVMExtension
118126
-Publisher "Microsoft.HpcCompute" `
119127
-ExtensionName "NvidiaGpuDriverLinux" `
120128
-ExtensionType "NvidiaGpuDriverLinux" `
121-
-TypeHandlerVersion 1.1 `
129+
-TypeHandlerVersion 1.2 `
122130
-SettingString '{ `
123131
}'
124132
```
125133

126134
### Azure CLI
127135

136+
The following example mirrors the above Azure Resource Manager and PowerShell examples and also adds custom settings as an example for non-default driver installation. Specifically, it updates the OS kernel and installs a specific CUDA toolkit version driver.
137+
128138
```azurecli
129139
az vm extension set `
130140
--resource-group myResourceGroup `
131141
--vm-name myVM `
132142
--name NvidiaGpuDriverLinux `
133143
--publisher Microsoft.HpcCompute `
134-
--version 1.1 `
144+
--version 1.2 `
135145
--settings '{ `
146+
"updateOS": true, `
147+
"driverVersion": "9.1.85", `
136148
}'
137149
```
138150

@@ -161,13 +173,12 @@ Extension execution output is logged to the following file:
161173
| Exit Code | Meaning | Possible Action |
162174
| :---: | --- | --- |
163175
| 0 | Operation successful |
164-
| 1 | Incorrect usage of extension. | Contact support with execution output log. |
165-
| 10 | Linux Integration Services for Hyper-V and Azure not available or installed. | Check output of lspci. |
166-
| 11 | NVIDIA GPU not found on this VM size. | Use a [supported VM size and OS](../linux/n-series-driver-setup.md). |
176+
| 1 | Incorrect usage of extension | Check execution output log |
177+
| 10 | Linux Integration Services for Hyper-V and Azure not available or installed | Check output of lspci |
178+
| 11 | NVIDIA GPU not found on this VM size | Use a [supported VM size and OS](../linux/n-series-driver-setup.md) |
167179
| 12 | Image offer not supported |
168180
| 13 | VM size not supported | Use an N-series VM to deploy |
169-
| 14 | Operation unsuccessful | |
170-
| 21 | Update failed on Ubuntu | Check output of "sudo apt-get update" |
181+
| 14 | Operation unsuccessful | Check execution output log |
171182

172183

173184
### Support
@@ -177,4 +188,4 @@ If you need more help at any point in this article, you can contact the Azure ex
177188
## Next steps
178189
For more information about extensions, see [Virtual machine extensions and features for Linux](features-linux.md).
179190

180-
For more information about N-series VMs, see [GPU optimized virtual machine sizes](../linux/sizes-gpu.md).
191+
For more information about N-series VMs, see [GPU optimized virtual machine sizes](../linux/sizes-gpu.md).

0 commit comments

Comments
 (0)