- Set up the Intel MPI Library environment bysourcing the setvars.sh script, which is found in your installation directory (by default,)./opt/intel/oneapi/mpi/<version>You must runsetvarsat the start of each session. See the Intel oneAPI HPC Toolkit Get Started Guide for more details, including options for automatic setup of environment settings.
- 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 thehostnameutility.A sample host file may look as follows:$ cat ./hosts # This line is ignored clusternode1 clusternode2 clusternode3 clusternode4
- For communication between cluster nodes, in most cases the Intel MPI Library uses the SSH protocol. You need to establish a passwordless SSH connection to ensure proper communication of MPI processes.