Intel® MPI Library Developer Guide for Windows* OS

ID 768730
Date 10/31/2024
Public
Document Table of Contents

Prerequisite Steps

Before you start using any of the Intel® MPI Library functionality, make sure to establish the proper environment settings:

  1. Set up the Intel MPI Library environment by running the setvars.bat file, which is found in your installation directory (by default, C:\Program Files (x86)\Intel\oneAPI\mpi\<version> ).

    NOTE:
    You must run setvars at the start of each  command-line session unless you are using Microsoft Visual Studio for Windows* (Visual Studio runs setvars automatically). See the Intel HPC Toolkit Get Started Guide for more details, including options for automatic setup of environment settings.
    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. To run an MPI application on a cluster, the Intel MPI Library needs to know names of all its nodes. Create a text file listing the cluster node names. The format of the file is one name per line, and the lines starting with # are ignored. To get the name of a node, use the hostname utility.

    A sample host file may look as follows:

    > type hosts
    # This line is ignored
    clusternode1
    clusternode2
    clusternode3
    clusternode4

NOTE:
When using Windows* Client Operating Systems, such as Windows* 10 and Windows* 11, for PowerShell remoting, make sure that users are added to the administrator group.
Intel MPI uses PowerShell bootstrap by default. It is available by default and does not require any extra steps. If you need more fine-grain setup information, refer to Microsoft PowerShell Setup Guide and read the following topics: about_Remote_Requirements (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_requirements?view=powershell-7.4), Security Considerations for PowerShell Remoting using WinRM (https://learn.microsoft.com/en-us/powershell/scripting/security/remoting/winrm-security?view=powershell-7.4), and about_Remote_Troubleshooting (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_troubleshooting?view=powershell-7.4). You can also consider domain-based authorization as an alternative to the default mechanism. However, this method requires additional configuration.

After completing these steps, you are ready to use the Intel MPI Library.