Intel MPI on Windows

The Windows Intel oneAPI compilers present Visual Studio-like command line options. Intel oneAPI HPC toolkit includes the Intel MPI library, which provides “mpiexec” needed to run MPI programs and MPI compiler wrappers.

Most users use the Intel oneAPI command prompt environment. Alternatively, run “compilervars.bat” script to enable the Intel compilers for each session. “psxevars.bat” is not appropriate for this setup. For convenience, make a batch script like ~/intel.bat containing:


set FC=ifx
set CC=icx
set CXX=icx

Unlike on Linux, Intel MPI on Windows is only for Intel oneAPI compiler and Visual Studio.

Although not often needed, a separate username can be used for Windows Intel MPI jobs by from Command Prompt:

runas /user:username cmd

Environment variables are not passed to the new window, so it may be necessary to run Intel compilervars.bat again. It’s possible to register the user credential in the Windows registry.