You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/extensions/hpccompute-gpu-linux.md
+32-21Lines changed: 32 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,35 +13,33 @@ ms.devlang: na
13
13
ms.topic: article
14
14
ms.tgt_pltfrm: vm-linux
15
15
ms.workload: infrastructure-services
16
-
ms.date: 08/20/2018
16
+
ms.date: 11/15/2018
17
17
ms.author: roiyz
18
18
19
19
---
20
20
# NVIDIA GPU Driver Extension for Linux
21
21
22
22
## Overview
23
23
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.
25
25
26
26
An extension is also available to install NVIDIA GPU drivers on [Windows N-series VMs](hpccompute-gpu-windows.md).
27
27
28
-
Terms of NVIDIA End-User License Agreement are located here - https://go.microsoft.com/fwlink/?linkid=874330
29
-
30
28
## Prerequisites
31
29
32
30
### Operating system
33
31
34
-
This extension supports the following OSs:
32
+
This extension supports the following OS distros, depending on driver support for specific OS version.
35
33
36
34
| Distribution | Version |
37
35
|---|---|
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|
41
39
42
40
### Internet connectivity
43
41
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.
45
43
46
44
## Extension schema
47
45
@@ -59,22 +57,32 @@ The following JSON shows the schema for the extension.
59
57
"properties": {
60
58
"publisher": "Microsoft.HpcCompute",
61
59
"type": "NvidiaGpuDriverLinux",
62
-
"typeHandlerVersion": "1.1",
60
+
"typeHandlerVersion": "1.2",
63
61
"autoUpgradeMinorVersion": true,
64
62
"settings": {
65
63
}
66
64
}
67
65
}
68
66
```
69
67
70
-
### Property values
68
+
### Properties
71
69
72
70
| Name | Value / Example | Data Type |
73
71
| ---- | ---- | ---- |
74
72
| apiVersion | 2015-06-15 | date |
75
73
| publisher | Microsoft.HpcCompute | string |
76
74
| 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 |
78
86
79
87
80
88
## Deployment
@@ -100,7 +108,7 @@ The following example assumes the extension is nested inside the virtual machine
100
108
"properties": {
101
109
"publisher": "Microsoft.HpcCompute",
102
110
"type": "NvidiaGpuDriverLinux",
103
-
"typeHandlerVersion": "1.1",
111
+
"typeHandlerVersion": "1.2",
104
112
"autoUpgradeMinorVersion": true,
105
113
"settings": {
106
114
}
@@ -118,21 +126,25 @@ Set-AzureRmVMExtension
118
126
-Publisher "Microsoft.HpcCompute" `
119
127
-ExtensionName "NvidiaGpuDriverLinux" `
120
128
-ExtensionType "NvidiaGpuDriverLinux" `
121
-
-TypeHandlerVersion 1.1 `
129
+
-TypeHandlerVersion 1.2 `
122
130
-SettingString '{ `
123
131
}'
124
132
```
125
133
126
134
### Azure CLI
127
135
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
+
128
138
```azurecli
129
139
az vm extension set `
130
140
--resource-group myResourceGroup `
131
141
--vm-name myVM `
132
142
--name NvidiaGpuDriverLinux `
133
143
--publisher Microsoft.HpcCompute `
134
-
--version 1.1 `
144
+
--version 1.2 `
135
145
--settings '{ `
146
+
"updateOS": true, `
147
+
"driverVersion": "9.1.85", `
136
148
}'
137
149
```
138
150
@@ -161,13 +173,12 @@ Extension execution output is logged to the following file:
161
173
| Exit Code | Meaning | Possible Action |
162
174
| :---: | --- | --- |
163
175
| 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).|
0 commit comments