Changeset 100 for trunk/oarutils


Ignore:
Timestamp:
Nov 13, 2013, 4:52:25 PM (10 years ago)
Author:
g7moreau
Message:
  • Better doc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oarutils/oar-profile.sh

    r99 r100  
    168168=head1 NAME
    169169
    170 oar_mpirun oar_envmpirun - OAR wrapper to launch mpi
     170oar-profile.sh - OAR bash profile to source
    171171
    172172=head1 SYNOPSIS
    173173
    174  oar_mpirun command
    175  oar_envmpirun command
     174 source oar-profile.sh
     175
     176 oar_mpirun [mpi_run option] command
     177 oar_envmpirun [mpi_run option] command
    176178
    177179
    178180=head1 DESCRIPTION
    179181
    180 When you need to do MPI over a cluster,
    181 you need to fix your environnement used by your code on every node.
    182 
    183 
     182The use of MPI over a cluster need some parameters.
     183When you use a batch scheduler like OAR,
     184the most important option like C<-np> and C<-machinefile> could be defined by default for most case.
     185
     186This bash sript define two function C<oar_mpirun> and C<oar_envmpirun>.
     187These are just wrapper and for most of the case,
     188defined C<-np> and C<-machinefile> for you.
     189With on of these wrapper, it is possible possible to use C<mpi_run>
     190without any option...
     191
     192Because C<mpi_run> need to launch a command on a remote node on a cluster,
     193theses wrappers are actually only validate for B<OpenMPI>
     194which use C<ssh> by default as its transport from one node to another.
     195
     196=head1 COMMAND
     197
     198=over 12
     199
     200=item B<oar_mpirun> [mpi_run option] F<program>
     201
     202Wrapper to C<mpirun>, use C<oarsh> as remote shell,
     203set environment variable on the remote side by using option C<-x> of C<mpirun>.
     204If no option C<-np> or C<-machinefile> are defined,
     205set them by default from OAR environment variable C<OAR_NODE_FILE>.
     206Option C<-v> (or C<--verbose>) make an echo of the real C<mpirun> command on F<stdout>.
     207
     208=item B<oar_envmpirun> [mpi_run option] F<program>
     209
     210Wrapper to C<mpirun>, use C<oar-envsh> as remote shell which transmit environment variable
     211(use the variable C<OMPI_MCA_plm_rsh_agent> for that).
     212If no option C<-np> or C<-machinefile> are defined,
     213set them by default from OAR environment variable C<OAR_NODE_FILE>.
     214Option C<-v> (or C<--verbose>) make an echo of the real C<mpirun> command on F<stdout>.
     215
     216=back
     217
     218You can use C<--machinefile>, C<-hostfile>, C<--hostfile> as alias for C<-machinefile>.
     219If C<--host> C<-host> or C<-H> are defined, no option C<-machinefile> is set.
     220
     221At the end of the C<mpirun> option, you can use C<-->.
     222Wrapper will then stop to analyse the command line.
     223It could be important to use that if your F<program> has the same names for command line option...
    184224
    185225=head1 SEE ALSO
    186226
    187 oarsub
     227mpirun, oarsh, oar-envsh
    188228
    189229=head1 AUTHORS
Note: See TracChangeset for help on using the changeset viewer.