Apple Mac OS X Server Version 10.4 or Later Manual do Utilizador Página 6

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 11
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 5
cd build
./configure --prefix /usr/local/openmpi --with-fortran
--enable-shared --with-xgrid
make
make install
This will install the binaries into /usr/local/openmpi, thus we need to add them to
the search path by appending
“:/usr/local/openmpi/bin” to PATH in /etc/profile
(e.g., by “
emacs /etc/profile”).
In order to work with OpenMPI easily, there needs to be a common shared directory
over all nodes; this was one of the main reasons we have set up the NFS shared
/NetCommon directory in Section 4. Create a “tgz” archive from the binaries and place it
into the common directory:
cd /usr/local/openmpi
tar –cvzf openmpibinaries.tgz /usr/local/openmpi
mv openmpibinaries.tgz /NetCommon
5.2. OpenMPI on all C10.4-s
For OpenMPI to work, it needs to be installed on all cluster nodes; thus, use the
archive in the common directory for this install. Open a terminal window and become
superuser (“
sudo su –“). Install the binaries:
cp /NetCommon/openmpibinaries.tgz /
cd /
tar –xvzf openmpibinaries.tgz
rm /openmpibinaries.tgz
Do not forget to add OpenMpi to the search path by appending
:/usr/local/openmpi/bin” to PATH in /etc/profile (e.g., by “emacs
/etc/profile
”).
5.3. Running OpenMPI Programs
You can compile OpenMPI programs on the server. To run OpenMPI enabled
programs, copy them into (a subdirectory of) /NetCommon and execute binaries using
/usr/local/openmpi/bin/mpiexec –n nr_procs /NetCommon/your_executable”.
You can monitor their progress with the Xgrid Admin tool. A sample ping-pong program
(one, that sends “ping” MPI messages among nodes) slightly modified from [11] can be
downloaded from [12] (compile with make, use only even number of processors when
running).
6. Setting up LAM-MPI
In this set of instructions we are going to make LAM-MPI work quickly but relatively
dirty. LAM-MPI is not undergoing any more development as they have joined forces
with OpenMPI; however, they are still fixing bugs. Unfortunately, LAM-MPI does not
come with support for Xgrid thus we will need to use another method to make the nodes
form an MPI cluster. For that we will need to use ssh. The first thing to do is to make sure
remote login is enabled on all machines (use “System preferencesSharing” to enable
remote login). For LAM-MPI to work, ssh needs to be configured so that the user staring
it up does not need a password to log into any of the other machines. Thus, we
Vista de página 5
1 2 3 4 5 6 7 8 9 10 11

Comentários a estes Manuais

Sem comentários