Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
en:documentation:tutorials:submit:jobsequentielbash [2018/11/20 10:33] – [for sequential programs (shell bash)] cicalugaen:documentation:tutorials:submit:jobsequentielbash [2020/08/25 15:58] – modification externe 127.0.0.1
Ligne 2: Ligne 2:
  
  
-The batch system currently used at the PSMN is Sun Grid Engine (SGE). Its documentation is [[documentation:tools:sge|on this page]] as well as [[faq:sge|in the F.A.Q.]].+The batch system currently used at the PSMN is Sun Grid Engine (SGE). Its documentation is [[documentation:tools:sge|on this page]] as well as [[en:faq:accueil|in the F.A.Q.]].
  
  
Ligne 58: Ligne 58:
 ./SommeVecVecSEQ.exe ./SommeVecVecSEQ.exe
  
-fin+end
 </code> </code>
  
Ligne 69: Ligne 69:
 ### variables SGE ### variables SGE
 # #
-### shell du job+### shell of the job
 #$ -S /bin/bash #$ -S /bin/bash
-### nom du job (a changer)+### job name (to change):
 #$ -N SommeVecVecSEQ #$ -N SommeVecVecSEQ
-### file d'attente (a changer)+### queue (to change)
 #$ -q E5-2670_test #$ -q E5-2670_test
-### charger l'environnement utilisateur pour SGE+### load the user environment for SGE
 #$ -cwd #$ -cwd
-### exporter les variables d'environnement sur tous les noeuds d'execution+### export environment variables on all execution nodes
 #$ -V #$ -V
-### mails en debut et fin d'execution+### start and end of execution mails
 #$ -m be #$ -m be
-aller dans le repertoire de travail/soumission +go to the work submission directory 
-# important, sinon, le programme est lancé depuis ~/+# important, otherwise the program is running since ~/
 cd ${SGE_O_WORKDIR} cd ${SGE_O_WORKDIR}
-### configurer l'environnement (a changer)+### configure the environment (to change)
  
 module load GCC/7.2.0  module load GCC/7.2.0 
  
-### definition SCRATCHDIR+### SCRATCHDIR definition
 SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR} SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR}
-### verif SCRATCHDIR+### SCRATCHDIR checking
 echo "SCRATCHDIR=${SCRATCHDIR}" echo "SCRATCHDIR=${SCRATCHDIR}"
  
-### creation du repertoire de travail dans le /scratch+### creation of the working directory in /scratch
 if [[ ! -d "${SCRATCHDIR}" ]]  if [[ ! -d "${SCRATCHDIR}" ]] 
 then then
Ligne 99: Ligne 99:
 fi  fi 
  
-### copie des fichiers sources dans le /scratch+### copy source files to /scratch
 /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/ /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/
    
-### se placer dans le repertoire d'execution AVANT le lancement du programme+### move into the execution directory BEFORE launching the program
 cd ${SCRATCHDIR} cd ${SCRATCHDIR}
    
-### execution du programme+### program execution
 ######EXECDIR=/scratch/cicaluga/tempo ######EXECDIR=/scratch/cicaluga/tempo
 EXECDIR=${SCRATCHDIR} EXECDIR=${SCRATCHDIR}
Ligne 116: Ligne 116:
 # rm -fr ${SCRATCHDIR}/* # rm -fr ${SCRATCHDIR}/*
    
-fin+end
 </code> </code>
 ====== Surveiller un job ====== ====== Surveiller un job ======
  
 Voir [[documentation:tools:sge#surveiller_les_jobs|la documentation]] qui correspond et [[documentation:examples:qstat_cli|les exemples]]. Voir [[documentation:tools:sge#surveiller_les_jobs|la documentation]] qui correspond et [[documentation:examples:qstat_cli|les exemples]].