Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
en:documentation:tutorials:submit [2018/06/19 12:39] – cicaluga | en:documentation:tutorials:submit [2020/05/13 14:55] – supprimée fleroux | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | < | ||
- | |||
- | The batch system currently used at the PSMN is Sun Grid Engine (SGE). | ||
- | Its documentation is [[documentation: | ||
- | |||
- | |||
- | ====== 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 -np ${NSLOTS} ${EXECDIR}/ | ||
- | ${MPIRUN} -v -prefix ${PREFIX} -mca btl vader, | ||
- | |||
- | # fin | ||
- | </ | ||
- | |||
- | |||
- | <note important>: | ||
- | ATTENTION au hostfile : | ||
- | ====== Surveiller un job ====== | ||
- | |||
- | See [[documentation: |