Before you start using any of the Intel® MPI Library functionality, make sure to establish the proper environment for Intel MPI Library. Follow these steps:
Set up the Intel MPI Library environment. Source the mpivars.[c]sh script:
$ . <installdir>/intel64/bin/mpivars.sh
By default, <installdir> is /opt/intel/compilers_and_libraries_<version>.<update>.<package>/linux/mpi.
To run an MPI application on a cluster, 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:
$ cat ./hosts # this line is ignored clusternode1 clusternode2 clusternode3 clusternode4
For communication between cluster nodes, in most cases Intel MPI Library uses the SSH protocol. You need to establish a passwordless SSH connection to ensure proper communication of MPI processes. Intel MPI Library provides the sshconnectivity.exp script that helps you do the job. It automatically generates and distributes SSH authentication keys over the nodes.
The script is located at /opt/intel/parallel_studio_xe_<version>.<update>.<package>/bin by default. Run the script and pass the previously created host file as an argument.
If the script does not work for your system, try generating and distributing authentication keys manually.
After completing these steps, you are ready to use Intel MPI Library.