Changeset 100 for trunk/oarutils
- Timestamp:
- Nov 13, 2013, 4:52:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oarutils/oar-profile.sh
r99 r100 168 168 =head1 NAME 169 169 170 oar _mpirun oar_envmpirun - OAR wrapper to launch mpi170 oar-profile.sh - OAR bash profile to source 171 171 172 172 =head1 SYNOPSIS 173 173 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 176 178 177 179 178 180 =head1 DESCRIPTION 179 181 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 182 The use of MPI over a cluster need some parameters. 183 When you use a batch scheduler like OAR, 184 the most important option like C<-np> and C<-machinefile> could be defined by default for most case. 185 186 This bash sript define two function C<oar_mpirun> and C<oar_envmpirun>. 187 These are just wrapper and for most of the case, 188 defined C<-np> and C<-machinefile> for you. 189 With on of these wrapper, it is possible possible to use C<mpi_run> 190 without any option... 191 192 Because C<mpi_run> need to launch a command on a remote node on a cluster, 193 theses wrappers are actually only validate for B<OpenMPI> 194 which 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 202 Wrapper to C<mpirun>, use C<oarsh> as remote shell, 203 set environment variable on the remote side by using option C<-x> of C<mpirun>. 204 If no option C<-np> or C<-machinefile> are defined, 205 set them by default from OAR environment variable C<OAR_NODE_FILE>. 206 Option 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 210 Wrapper 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). 212 If no option C<-np> or C<-machinefile> are defined, 213 set them by default from OAR environment variable C<OAR_NODE_FILE>. 214 Option C<-v> (or C<--verbose>) make an echo of the real C<mpirun> command on F<stdout>. 215 216 =back 217 218 You can use C<--machinefile>, C<-hostfile>, C<--hostfile> as alias for C<-machinefile>. 219 If C<--host> C<-host> or C<-H> are defined, no option C<-machinefile> is set. 220 221 At the end of the C<mpirun> option, you can use C<-->. 222 Wrapper will then stop to analyse the command line. 223 It could be important to use that if your F<program> has the same names for command line option... 184 224 185 225 =head1 SEE ALSO 186 226 187 oarsub 227 mpirun, oarsh, oar-envsh 188 228 189 229 =head1 AUTHORS
Note: See TracChangeset
for help on using the changeset viewer.