Ceci est une ancienne révision du document !
allo-psmn
, on one of the compilation servers
The batch system currently used at the PSMN is Sun Grid Engine (SGE). Its documentation is on this page as well as in the F.A.Q..
We use the command qsub
to submit a job to the PSMN batch system. For exemple :
qsub submission_script
Here are some scripts for submitting a job to the PSMN batch system.
Other exemples of submission scripts , exemples of submission scripts as well as tutorials.
You can submit your job using the following command:
qsub submission_script
#!/bin/bash # ### variables SGE ### shell of the job #$ -S /bin/bash ### job name (to change): #$ -N SommeVecVecSEQ ### queue (to change) #$ -q E5_test ### 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 # go to the work / submission directory # important, otherwise the program is running since ~/ cd ${SGE_O_WORKDIR} ### configure the environment (to change) module load iccifort/2017.4 ### program execution (to change with your executable) ###EXECDIR=${HOME}/Formations/Sequentiel ###${EXECDIR}/SommeVecVecSEQ.exe < Monfichierdedata > monfichierresultat ./SommeVecVecSEQ.exe # fin
Work in the /scratch
#!/bin/bash # ### variables SGE # ### shell du job #$ -S /bin/bash ### nom du job (a changer) #$ -N SommeVecVecSEQ ### file d'attente (a changer) #$ -q E5-2670_test ### charger l'environnement utilisateur pour SGE #$ -cwd ### exporter les variables d'environnement sur tous les noeuds d'execution #$ -V ### mails en debut et fin d'execution #$ -m be # aller dans le repertoire de travail/soumission # important, sinon, le programme est lancé depuis ~/ cd ${SGE_O_WORKDIR} ### configurer l'environnement (a changer) module load GCC/7.2.0 ### definition SCRATCHDIR SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR} ### verif SCRATCHDIR echo "SCRATCHDIR=${SCRATCHDIR}" ### creation du repertoire de travail dans le /scratch if [[ ! -d "${SCRATCHDIR}" ]] then /bin/mkdir -p ${SCRATCHDIR} fi ### copie des fichiers sources dans le /scratch /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/ ### se placer dans le repertoire d'execution AVANT le lancement du programme cd ${SCRATCHDIR} ### execution du programme ######EXECDIR=/scratch/cicaluga/tempo EXECDIR=${SCRATCHDIR} ${EXECDIR}/SommeVecVecSEQ.exe > output_scratch ####./SommeVecVecSEQ.exe # copy results from scratch to home /bin/cp -r $SCRATCHDIR/output_scratch $SGE_O_WORKDIR/output_home # rm -fr ${SCRATCHDIR}/* # fin
Voir la documentation qui correspond et les exemples.