Get Started with Intel® MPI Library for Intel® oneAPI on Windows* OS

The Intel® MPI Library enables you to create, maintain, and test advanced applications that have performance advantages on high-performance computing (HPC) clusters based on Intel® processors.

The Intel MPI Library is available as a standalone product and as part of the Intel® HPC Toolkit.The Intel MPI Library is a multi-fabric message passing library that implements the Message Passing Interface, version 3.1 (MPI-3.1) specification. Use the library to develop applications that can run on multiple cluster interconnects.

The Intel MPI Library has the following features:

The product consists of the following main components:

Intel MPI Library also includes Intel® MPI Benchmarks, which enable you to measure MPI operations on various cluster architectures and MPI implementations. For details, see the Intel® MPI Benchmarks User Guide. Source code is available in the GitHub repository.

For other more information on using the Intel MPI Library see Intel® MPI Library Developer Guide for Windows* OS and Intel® MPI Library Developer Reference for Windows* OS.

Key Features

The Intel MPI Library has the following major features:

Building and Running MPI Programs

Compiling an MPI Program

1. Run the setvars.bat script to set the environment variables for the Intel MPI Library. The script is located in the installation directory (by default, C:\Program Files (x86)\Intel\oneAPI).

Note

If you are using Intel MPI in a Unified Directory Layout, set the environment variables using the C:\Program Files (x86)\Intel\oneAPI\<toolkit-version-number>\oneapi_setvars.bat script instead. To understand more about the Unified Directory Layout, including how the environment is initialized and the advantages of using the layout, see Use the setvars and oneapi-vars Scripts with Windows*.

2. Make sure you have the desired compiler installed and configured properly. For example, for the Intel® C++ Compiler, run:

> icl

If the command is not recognized, add the compiler to your PATH. For the Intel® compilers, you can run the vars.bat script from corresponding directory.

3. Compile your program using the appropriate compiler driver. For example, for a test C program:

> mpiicc -o test.exe <install-dir>\test\test.c 

For detailed system requirements, see Intel® MPI Library System Requirements.

Running an MPI Program

Execute the program using the mpiexec command. For example, for the test program:

> mpiexec -n <# of processes> test.exe 

To specify the hosts to run the program on, use the -hosts option:

> mpiexec -n <# of processes> -ppn <# of processes per node> -hosts <host1>,<host2>,...,<hostN> test.exe

Troubleshooting

If you encounter problems when using Intel MPI Library, go through the following general procedures to troubleshoot them:

See more details in the “Troubleshooting” section of the Developer Guide.

More Resources