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/compiling-scaling-applications.md
+20-15Lines changed: 20 additions & 15 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 how to scale HPC applications on Azure VMs.
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,23 +17,25 @@ author: mamccrea
17
17
Optimal scale-up and scale-out performance of HPC applications on Azure requires performance tuning and optimization experiments for the specific workload. This section and the VM series-specific pages offer general guidance for scaling your applications.
18
18
19
19
## Application setup
20
+
20
21
The [azurehpc repo](https://github.com/Azure/azurehpc) contains many examples of:
22
+
21
23
- Setting up and running [applications](https://github.com/Azure/azurehpc/tree/master/apps) optimally.
22
24
- Configuration of [file systems, and clusters](https://github.com/Azure/azurehpc/tree/master/examples).
23
25
-[Tutorials](https://github.com/Azure/azurehpc/tree/master/tutorials) on how to get started easily with some common application workflows.
24
26
25
-
## Optimally scaling MPI
27
+
## Optimally scaling MPI
26
28
27
29
The following suggestions apply for optimal application scaling efficiency, performance, and consistency:
28
30
29
-
- For smaller scale jobs (< 256K connections) use:
30
-
```bash UCX_TLS=rc,sm ```
31
-
- For larger scale jobs (> 256K connections) use:
32
-
```bash UCX_TLS=dc,sm ```
33
-
- To calculate the number of connections for your MPI job, use:
34
-
```bash Max Connections = (processes per node) x (number of nodes per job) x (number of nodes per job) ```
35
-
31
+
- For smaller scale jobs (< 256K connections) use: `UCX_TLS=rc,sm`
32
+
33
+
- For larger scale jobs (> 256K connections) use: `UCX_TLS=dc,sm`
34
+
35
+
- To calculate the number of connections for your MPI job, use: `Max Connections = (processes per node) x (number of nodes per job) x (number of nodes per job)`
36
+
36
37
## Adaptive Routing
38
+
37
39
Adaptive Routing (AR) allows Azure Virtual Machines (VMs) running EDR and HDR InfiniBand to automatically detect and avoid network congestion by dynamically selecting optimal network paths. As a result, AR offers improved latency and bandwidth on the InfiniBand network, which in turn drives higher performance and scaling efficiency. For more information, see [TechCommunity article](https://techcommunity.microsoft.com/t5/azure-compute/adaptive-routing-on-azure-hpc/ba-p/1205217).
38
40
39
41
## Process pinning
@@ -44,7 +46,7 @@ Adaptive Routing (AR) allows Azure Virtual Machines (VMs) running EDR and HDR In
44
46
- For pure MPI applications, experiment with between one to four MPI ranks per CCX for optimal performance on HB and HBv2 VM sizes.
45
47
- Some applications with extreme sensitivity to memory bandwidth may benefit from using a reduced number of cores per CCX. For these applications, using three or two cores per CCX may reduce memory bandwidth contention and yield higher real-world performance or more consistent scalability. In particular, MPI 'Allreduce' may benefit from this approach.
46
48
- For larger scale runs, it's recommended to use UD or hybrid RC+UD transports. Many MPI libraries/runtime libraries use these transports internally (such as UCX or MVAPICH2). Check your transport configurations for large-scale runs.
47
-
49
+
48
50
## Compiling applications
49
51
<br>
50
52
<details>
@@ -63,7 +65,7 @@ Clang supports the `-march=znver1` flag to enable best code generation and tuni
63
65
64
66
### FLANG
65
67
66
-
The FLANG compiler is a recent addition to the AOCC suite (added April 2018) and is currently in prerelease for developers to download and test. Based on Fortran 2008, AMD extends the GitHub version of FLANG(https://github.com/flang-compiler/flang). The FLANG compiler supports all Clang compiler options and other number of FLANG-specific compiler options.
68
+
The FLANG compiler is a recent addition to the AOCC suite (added April 2018) and is currently in prerelease for developers to download and test. Based on Fortran 2008, AMD extends the GitHub version of [FLANG](https://github.com/flang-compiler/flang). The FLANG compiler supports all Clang compiler options and other number of FLANG-specific compiler options.
67
69
68
70
### DragonEgg
69
71
@@ -72,32 +74,36 @@ DragonEgg is a gcc plugin that replaces GCC’s optimizers and code generators f
72
74
GFortran is the actual frontend for Fortran programs responsible for preprocessing, parsing, and semantic analysis generating the GCC GIMPLE intermediate representation (IR). DragonEgg is a GNU plugin, plugging into GFortran compilation flow. It implements the GNU plugin API. With the plugin architecture, DragonEgg becomes the compiler driver, driving the different phases of compilation. After following the download and installation instructions, Dragon Egg can be invoked using:
PGI Community Edition 17 is confirmed to work with AMD EPYC. A PGI-compiled version of STREAM does deliver full memory bandwidth of the platform. The newer Community Edition 18.10 (Nov 2018) should likewise work well. Use this CLI command to compile with the Intel Compiler:
82
84
85
+
PGI Community Edition 17 is confirmed to work with AMD EPYC. A PGI-compiled version of STREAM does deliver full memory bandwidth of the platform. The newer Community Edition 18.10 (Nov 2018) should likewise work well. Use this CLI command to compile with the Intel Compiler:
For HPC workloads, AMD recommends GCC compiler 7.3 or newer. Older versions, such as 4.8.5 included with RHEL/CentOS 7.4, aren't recommended. GCC 7.3, and newer, delivers higher performance on HPL, HPCG, and DGEMM tests.
- Review the [HBv3-series overview](hbv3-series-overview.md) and [HC-series overview](hc-series-overview.md).
107
113
- Read about the latest announcements, HPC workload examples, and performance results at the [Azure Compute Tech Community Blogs](https://techcommunity.microsoft.com/t5/azure-compute/bg-p/AzureCompute).
108
114
- Learn more about [HPC](/azure/architecture/topics/high-performance-computing/) on Azure.
0 commit comments