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/configure.md
+50-25Lines changed: 50 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn about configuring and optimizing the InfiniBand enabled H-ser
4
4
ms.service: virtual-machines
5
5
ms.subservice: hpc
6
6
ms.topic: article
7
-
ms.date: 03/28/2023
7
+
ms.date: 04/11/2023
8
8
ms.reviewer: cynthn, mattmcinnes
9
9
ms.author: mamccrea
10
10
author: mamccrea
@@ -17,14 +17,17 @@ author: mamccrea
17
17
This article shares some guidance on configuring and optimizing the InfiniBand-enabled [HB-series](sizes-hpc.md) and [N-series](sizes-gpu.md) VMs for HPC.
18
18
19
19
## VM images
20
+
20
21
On InfiniBand (IB) enabled VMs, the appropriate drivers are required to enable RDMA.
22
+
21
23
- The [CentOS-HPC VM images](#centos-hpc-vm-images) in the Marketplace come preconfigured with the appropriate IB drivers.
22
-
- The CentOS-HPC version 7.9 VM image additionally comes preconfigured with the NVIDIA GPU drivers.
24
+
- The CentOS-HPC version 7.9 VM image additionally comes preconfigured with the NVIDIA GPU drivers.
23
25
- The [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) in the Marketplace come preconfigured with the appropriate IB drivers and GPU drivers.
24
26
25
27
These VM images are based on the base CentOS and Ubuntu marketplace VM images. Scripts used in the creation of these VM images from their base CentOS Marketplace image are on the [azhpc-images repo](https://github.com/Azure/azhpc-images/tree/master/centos).
26
28
27
29
On GPU enabled [N-series](sizes-gpu.md) VMs, the appropriate GPU drivers are additionally required. This can be available by the following methods:
30
+
28
31
- Use the [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) and [CentOS-HPC VM image](#centos-hpc-vm-images) version 7.9 that come preconfigured with the NVIDIA GPU drivers and GPU compute software stack (CUDA, NCCL).
29
32
- Add the GPU drivers through the [VM extensions](./extensions/hpccompute-gpu-linux.md).
30
33
- Install the GPU drivers [manually](./linux/n-series-driver-setup.md).
@@ -36,66 +39,84 @@ It's also recommended to create [custom VM images](./linux/tutorial-custom-image
36
39
### VM sizes supported by the HPC VM images
37
40
38
41
#### InfiniBand OFED support
42
+
39
43
The latest Azure HPC marketplace images come with Mellanox OFED 5.1 and above, which do not support ConnectX3-Pro InfiniBand cards. ConnectX-3 Pro InfiniBand cards require MOFED 4.9 LTS version. These VM images only support ConnextX-5 and newer InfiniBand cards. The following VM size support matrix for the InfiniBand OFED in these HPC VM images:
Currently only the [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) and [CentOS-HPC VM images](#centos-hpc-vm-images) version 7.9 come preconfigured with the NVIDIA GPU drivers and GPU compute software stack (CUDA, NCCL).
45
51
46
52
The VM size support matrix for the GPU drivers in supported HPC VM images is as follows:
53
+
47
54
-[N-series](sizes-gpu.md): NDv2, NDv4 VM sizes are supported with the NVIDIA GPU drivers and GPU compute software stack (CUDA, NCCL).
48
55
- The other 'NC' and 'ND' VM sizes in the [N-series](sizes-gpu.md) are supported with the NVIDIA GPU drivers.
49
56
50
57
All of the VM sizes in the N-series support [Gen 2 VMs](generation-2.md), though some older ones also support Gen 1 VMs. Gen 2 support is also indicated with a "01" at the end of the image URN or version.
51
58
52
-
### CentOS-HPC VM images
59
+
### SR-IOV enabled VMs
60
+
61
+
#### CentOS-HPC VM images
53
62
54
-
#### SR-IOV enabled VMs
55
63
For SR-IOV enabled [RDMA capable VMs](sizes-hpc.md#rdma-capable-instances), [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) and CentOS-HPC VM images version 7.6 and later are suitable. These VM images come preconfigured with the Mellanox OFED drivers for RDMA and commonly used MPI libraries and scientific computing packages. Refer to the [VM size support matrix](#vm-sizes-supported-by-the-hpc-vm-images).
64
+
56
65
- The available or latest versions of the VM images can be listed with the following information using [CLI](/cli/azure/vm/image#az-vm-image-list) or [Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps/openlogic.centos-hpc?tab=Overview).
57
-
```bash
66
+
67
+
```output
58
68
"publisher": "OpenLogic",
59
69
"offer": "CentOS-HPC",
60
70
```
71
+
61
72
- Scripts used in the creation of the [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) and CentOS-HPC version 7.6 and later VM images from a base CentOS Marketplace image are on the [azhpc-images repo](https://github.com/Azure/azhpc-images/tree/master/centos).
62
73
- Additionally, details on what's included in the [Ubuntu-HPC VM images](#ubuntu-hpc-vm-images) and CentOS-HPC version 7.6 and later VM images, and how to deploy them are in a [TechCommunity article](https://techcommunity.microsoft.com/t5/azure-compute/azure-hpc-vm-images/ba-p/977094).
63
74
64
-
> [!NOTE]
75
+
> [!NOTE]
65
76
> Among the CentOS-HPC VM images, currently only the version 7.9 VM image additionally comes preconfigured with the NVIDIA GPU drivers and GPU compute software stack (CUDA, NCCL).
66
77
67
-
> [!NOTE]
78
+
> [!NOTE]
68
79
> SR-IOV enabled N-series VM sizes with FDR InfiniBand (e.g. NCv3 and older) will be able to use the following CentOS-HPC VM image or older versions from the Marketplace:
80
+
69
81
>- OpenLogic:CentOS-HPC:7.6:7.6.2020062900
70
82
>- OpenLogic:CentOS-HPC:7_6gen2:7.6.2020062901
71
83
>- OpenLogic:CentOS-HPC:7.7:7.7.2020062600
72
84
>- OpenLogic:CentOS-HPC:7_7-gen2:7.7.2020062601
73
85
>- OpenLogic:CentOS-HPC:8_1:8.1.2020062400
74
86
>- OpenLogic:CentOS-HPC:8_1-gen2:8.1.2020062401
75
87
76
-
### Ubuntu-HPC VM images
88
+
#### Ubuntu-HPC VM images
89
+
77
90
For SR-IOV enabled [RDMA capable VMs](sizes-hpc.md#rdma-capable-instances), Ubuntu-HPC VM images versions 18.04 and 20.04 are suitable. These VM images come preconfigured with the Mellanox OFED drivers for RDMA, NVIDIA GPU drivers, GPU compute software stack (CUDA, NCCL), and commonly used MPI libraries and scientific computing packages. Refer to the [VM size support matrix](#vm-sizes-supported-by-the-hpc-vm-images).
91
+
78
92
- The available or latest versions of the VM images can be listed with the following information using [CLI](/cli/azure/vm/image#az-vm-image-list) or [Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps/microsoft-dsvm.ubuntu-hpc?tab=overview).
79
-
```bash
93
+
94
+
```output
80
95
"publisher": "Microsoft-DSVM",
81
96
"offer": "Ubuntu-HPC",
82
97
```
98
+
83
99
- Scripts used in the creation of the Ubuntu-HPC VM images from a base Ubuntu Marketplace image are on the [azhpc-images repo](https://github.com/Azure/azhpc-images/tree/master/ubuntu).
84
100
- Additionally, details on what's included in the Ubuntu-HPC VM images, and how to deploy them are in a [TechCommunity article](https://techcommunity.microsoft.com/t5/azure-compute/azure-hpc-vm-images/ba-p/977094).
85
101
86
102
### RHEL/CentOS VM images
103
+
87
104
The base RHEL or CentOS-based non-HPC VM images on the Marketplace can be configured for use on the SR-IOV enabled [RDMA capable VMs](sizes-hpc.md#rdma-capable-instances). Learn more about [enabling InfiniBand](./extensions/enable-infiniband.md) and [setting up MPI](setup-mpi.md) on the VMs.
105
+
88
106
- Scripts used in the creation of the CentOS-HPC version 7.6 and later VM images from a base CentOS Marketplace image from the [azhpc-images repo](https://github.com/Azure/azhpc-images/tree/master/centos) can also be used.
89
-
107
+
90
108
### Ubuntu VM images
109
+
91
110
The base Ubuntu Server 16.04 LTS, 18.04 LTS, and 20.04 LTS VM images in the Marketplace are supported for both SR-IOV and non-SR-IOV [RDMA capable VMs](sizes-hpc.md#rdma-capable-instances). Learn more about [enabling InfiniBand](./extensions/enable-infiniband.md) and [setting up MPI](setup-mpi.md) on the VMs.
111
+
92
112
- Instructions for enabling InfiniBand on the Ubuntu VM images are in a [TechCommunity article](https://techcommunity.microsoft.com/t5/azure-compute/configuring-infiniband-for-ubuntu-hpc-and-gpu-vms/ba-p/1221351).
93
113
- Scripts used in the creation of the Ubuntu 18.04 and 20.04 LTS based HPC VM images from a base Ubuntu Marketplace image are on the [azhpc-images repo](https://github.com/Azure/azhpc-images/tree/master/ubuntu).
94
114
95
115
> [!NOTE]
96
116
> Mellanox OFED 5.1 and above don't support ConnectX3-Pro InfiniBand cards on SR-IOV enabled N-series VM sizes with FDR InfiniBand (e.g. NCv3). Please use LTS Mellanox OFED version 4.9-0.1.7.0 or older on the N-series VM's with ConnectX3-Pro cards. For more information, see [Linux InfiniBand Drivers](https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed).
97
117
98
118
### SUSE Linux Enterprise Server VM images
119
+
99
120
SLES 12 SP3 for HPC, SLES 12 SP3 for HPC (Premium), SLES 12 SP1 for HPC, SLES 12 SP1 for HPC (Premium), SLES 12 SP4 and SLES 15 VM images in the Marketplace are supported. These VM images come preloaded with the Network Direct drivers for RDMA (on the non-SR-IOV VM sizes) and Intel MPI version 5.1. Learn more about [setting up MPI](setup-mpi.md) on the VMs.
100
121
101
122
## Optimize VMs
@@ -110,51 +131,55 @@ If necessary for functionality or performance, [Linux Integration Services (LIS)
110
131
wget https://aka.ms/lis
111
132
tar xzf lis
112
133
pushd LISISO
113
-
./upgrade.sh
134
+
sudo ./upgrade.sh
114
135
```
115
136
116
137
### Reclaim memory
117
138
118
139
Improve performance by automatically reclaiming memory to avoid remote memory access.
119
140
120
141
```bash
121
-
echo 1 >/proc/sys/vm/zone_reclaim_mode
142
+
sudo echo 1 >/proc/sys/vm/zone_reclaim_mode
122
143
```
123
144
124
145
Keep reclaim memory mode persistent after VM reboots:
0 commit comments