Hp XC System 2.x Software Manuel d'utilisateur Page 99

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 154
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 98
7.4.6.1 Examples
Consider an HP XC system configuration in w hich lsfhost.localdomain is the LSF
execution host and nodes n[1-10] are compute nodes in the lsf partition. All n odes contain
2 processors, providing 20 processors for use by LSF jobs.
Example 7-8 displays, then runs, a simple batch script.
Example 7-8: Submitting a Batch Job Script
$ cat ./myscript.sh
#!/bin/sh
srun hostname
mpirun -srun hellompi
$ bsub -n4 -I ./myscript.sh
Job <78> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n1
n1
n2
n2
Hello world! I’m 0 of 4 on n1
Hello world! I’m 1 of 4 on n1
Hello world! I’m 2 of 4 on n2
Hello world! I’m 3 of 4 on n2
Example 7 -9 runs the same script on different resources.
Example 7-9: Submitting a Batch Script with a Specific Topologic Request
$ bsub -n4 -ext "SLURM[nodes=4]" -I ./myscript.sh
Job <79> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n1
n2
n3
n4
Hello world! I’m 0 of 4 on n1
Hello world! I’m 1 of 4 on n2
Hello world! I’m 2 of 4 on n3
Hello world! I’m 3 of 4 on n4
Example 7-10 and Example 7-11 show how the jobs inside the script can be manipu lated within
the allo cation.
Example 7-10: Submitting a Batch Job Script that uses a Subset of the Allocation
$ bsub -n4 -ext "SLURM[nodes=4]" -I ./myscript.sh "-n 2"
Job <80> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n1
n2
Hello world! I’m 0 of 2 on n1
Hello world! I’m 1 of 2 on n2
Using LSF 7-15
Vue de la page 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 153 154

Commentaires sur ces manuels

Pas de commentaire