Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:documentation:tutorials:submit:accueil [2020/05/13 14:14] – créée fleroux | en:documentation:tutorials:submit:accueil [2023/12/12 12:58] (Version actuelle) – supprimée ltaulell | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | < | ||
| - | |||
| - | The batch system currently used at the PSMN is Sun Grid Engine (SGE). | ||
| - | |||
| - | Its documentation is [[en: | ||
| - | |||
| - | |||
| - | ====== Submit a job ====== | ||
| - | |||
| - | We use the command '' | ||
| - | |||
| - | <code bash> | ||
| - | qsub submission_script | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | ====== Submission scripts ====== | ||
| - | |||
| - | Here are some scripts for submitting a job to the PSMN batch system. | ||
| - | |||
| - | <note warning> | ||
| - | |||
| - | Other [[documentation: | ||
| - | |||
| - | |||
| - | ======for parallel job (shell bash) ====== | ||
| - | |||
| - | |||
| - | You can submit your job using the following command: | ||
| - | |||
| - | <code bash> qsub submission_script </ | ||
| - | |||
| - | <code bash submission_script> | ||
| - | #!/bin/bash | ||
| - | # | ||
| - | ### variables SGE | ||
| - | ### shell of the job | ||
| - | #$ -S /bin/bash | ||
| - | ### job name (to change) | ||
| - | #$ -N SommeVecVecPAR | ||
| - | ### queue (to change) | ||
| - | #$ -q E5_test | ||
| - | ### parallel environment & nb cpu (NSLOTS) (to change) | ||
| - | #$ -pe test_debian 2 | ||
| - | ### load the user environment for SGE | ||
| - | #$ -cwd | ||
| - | ### to export environment variables to all runtime nodes | ||
| - | #$ -V | ||
| - | ### mails at the beginning and end of execution | ||
| - | #$ -m be | ||
| - | |||
| - | # given by the batch system | ||
| - | HOSTFILE=${TMPDIR}/ | ||
| - | |||
| - | # go to the work / submission directory | ||
| - | # important, otherwise the program is running since ~/ | ||
| - | cd ${SGE_O_WORKDIR} | ||
| - | |||
| - | # init env (should be in ~/.profile) | ||
| - | source / | ||
| - | |||
| - | ### configure the environment (to change) | ||
| - | module load iccifort/ | ||
| - | module load intel/ | ||
| - | |||
| - | ### au besoin, forcer l'env OpenMPI | ||
| - | PREFIX="/ | ||
| - | MPIRUN=${PREFIX}/ | ||
| - | |||
| - | ### program execution (to change with your executable) | ||
| - | ### | ||
| - | ### | ||
| - | |||
| - | ${MPIRUN} -v -prefix ${PREFIX} -mca btl vader, | ||
| - | |||
| - | # fin | ||
| - | </ | ||
| - | |||
| - | <WRAP center round info 60%> | ||
| - | D' | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | <note important>: | ||
| - | ATTENTION au hostfile : | ||
| - | ====== Surveiller un job ====== | ||
| - | |||
| - | See corresponding [[documentation: | ||