Hp XC System 2.x Software Manual do Utilizador Página 37

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 154
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 36
Example 2-5: Running an MPI Job with LSF Using the External Scheduler Option
(cont.)
Hello world! I’m 2 of 4 on host2
Hello world! I’m 3 of 4 on host3
Hello world! I’m 4 of 4 on host4
2.3.5.4 Submitting a Batch Job or Job Script
SubmittingbatchjobsisdiscussedindetailinSection7.4.6.Thebsub command format to
submit a batch job or job script is:
bsub -n num-procs [bsub-options] script-name
The -n num-procs option specifies the number of processors the job requests. The -n
num-procs is required for parallel jobs.
The script-name argument is the name of the batch job or script. The script can contain
one or more srun or mpirun commands.
The script will execute once on the first allocated n ode, and the srun or mpirun commands
within the script will be r un on the allocated compute nodes.
Consider an HP XC configuratio n where lsfhost.localdomain is the LSF execution host
and nodes n[1-10] are compute nodes in the LSF partition. All nod es contain 2 processors,
providing 20 processors for use by LSF jobs.
In this example, the following simple script myjobscript.sh is launched. Two srun
commands are specified within the script.
Example 2-6: Submitting a Job Script
#!/bin/sh
srun hostname
mpirun -srun hellompi
The following command submits this scrip t:
$ bsub -I -n4 myjobscript.sh
The -n4 option specifies that four processors are required. The -I option specifies that the job
is interactive and directs output to the termin al screen. The following output is displayed:
Job <29> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n2
n2
n4
n4
Hello world! I’m 0 of 4 on n2
Hello world! I’m 1 of 4 on n2
Hello world! I’m 2 of 4 on n4
Hello world! I’m 3 of 4 on n4
Using the System 2-11
Vista de página 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 153 154

Comentários a estes Manuais

Sem comentários