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 # end
Work in the /scratch
#!/bin/bash # ### variables SGE # ### shell of the job #$ -S /bin/bash ### job name (to change): #$ -N SommeVecVecSEQ ### queue (to change) #$ -q E5-2670_test ### load the user environment for SGE #$ -cwd ### export environment variables on all execution nodes #$ -V ### start and end of execution mails #$ -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 GCC/7.2.0 ### SCRATCHDIR definition SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR} ### SCRATCHDIR checking echo "SCRATCHDIR=${SCRATCHDIR}" ### creation of the working directory in /scratch if [[ ! -d "${SCRATCHDIR}" ]] then /bin/mkdir -p ${SCRATCHDIR} fi ### copy source files to /scratch /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/ ### move into the execution directory BEFORE launching the program cd ${SCRATCHDIR} ### program execution ######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}/* # end
Voir la documentation qui correspond et les exemples.