Download user manual - Duke University
Transcript
Chapter 3 Setting up OSPREY 3.1 Compute Node Setup After the installation of all required software is complete (see Chapter 2), OSPREY will be ready for use. First, MPI must be setup to run on a selected set of compute nodes. Users who are familiar with MPI may skip to Sec. 3.2. Next, some basic MPI functionality that should be sufficient for the proper execution of OSPREY is described. We will assume that the .mpd.conf file has been created and saved according to the instructions in the MPICH2 Installer’s Guide. We will also assume that the list of available compute nodes is stored in the file mpd.hosts in the OSPREY code directory. Each line in the mpd.hosts file corresponds to a single compute node. An example mpd.hosts file may look like this: linux1 linux2 linux3 linux4 linux5 In this example, there are five compute nodes on which MPI will be started. The user must make sure that they can ssh into any of these nodes without having to enter a password. One possible way to do this is to first execute the following commands and then manually login to each of the selected nodes: ssh-keygen -t rsa cp ∼/.ssh/id rsa.pub ∼/.ssh/authorized keys The following command will set up MPI for the list of nodes in mpd.hosts: mpdboot -n 5 -f mpd.hosts The number 5 for the -n argument is the total number of compute nodes on which MPI should be started; in this case, this number is equal to the total number of nodes in the mpd.hosts file. If mpdboot is executed from a node not in the mpd.hosts file (e.g., linux6), then -n could be called with a value of 6 (or less, in which case MPI will be started on only a subset of the nodes in the mpd.hosts file). To check whether MPI was successfully started on the given set of nodes, the user 8