User Manual

Rev 2.1-1.0.6
Mellanox Technologies
117
These MPI implementations, along with MPI benchmark tests such as OSU BW/LAT, Intel MPI
Benchmark, and Presta, are installed on your machine as part of the Mellanox OFED for Linux
installation. Table 14 lists some useful MPI links.
This chapter includes the following sections:
Section 5.2.2,“Prerequisites for Running MPI,” on page 117
Section 5.2.3,“MPI Selector - Which MPI Runs,” on page 118
Section 5.2.4,“Compiling MPI Applications,” on page 119
5.2.2 Prerequisites for Running MPI
For launching multiple MPI processes on multiple remote machines, the MPI standard provides a
launcher program that requires automatic login (i.e., password-less) onto the remote machines.
SSH (Secure Shell) is both a computer program and a network protocol that can be used for log-
ging and running commands on remote computers and/or servers.
5.2.2.1 SSH Configuration
The following steps describe how to configure password-less access over SSH:
Step 1. Generate an ssh key on the initiator machine (host1).
Step 2. Check that the public and private keys have been generated.
Table 14 - Useful MPI Links
MPI Standard
http://www-unix.mcs.anl.gov/mpi
Open MPI
http://www.open-mpi.org
MVAPICH 2 MPI
http://mvapich.cse.ohio-state.edu/
MPI Forum
http://www.mpi-forum.org
host1$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/<username>/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/<username>/.ssh/id_rsa.
Your public key has been saved in /home/<username>/.ssh/id_rsa.pub.
The key fingerprint is:
38:1b:29:df:4f:08:00:4a:0e:50:0f:05:44:e7:9f:05 <username>@host1
host1$ cd /home/<username>/.ssh/
host1$ ls
host1$ ls -la
total 40
drwx------ 2 root root 4096 Mar 5 04:57 .
drwxr-x--- 13 root root 4096 Mar 4 18:27 ..
-rw------- 1 root root 1675 Mar 5 04:57 id_rsa