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
Prochaine révisionLes deux révisions suivantes
en:documentation:tutorials:submit:jobsequentielbash [2018/10/04 17:08] – [for sequential programs (shell bash)] cicalugaen:documentation:tutorials:submit:jobsequentielbash [2020/05/13 14:58] fleroux
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 62: Ligne 62:
  
  
-Travailler dans le /scratch+Work in the  /scratch
  
 +<code bash script_seq>
 #!/bin/bash #!/bin/bash
 # #
Ligne 84: Ligne 85:
 cd ${SGE_O_WORKDIR} cd ${SGE_O_WORKDIR}
 ### configurer l'environnement (a changer) ### configurer l'environnement (a changer)
- +
 module load GCC/7.2.0  module load GCC/7.2.0 
- +
 ### definition SCRATCHDIR ### definition SCRATCHDIR
 SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR} SCRATCHDIR=/scratch/votre_login/${SGE_O_WORKDIR}
 ### verif SCRATCHDIR ### verif SCRATCHDIR
 echo "SCRATCHDIR=${SCRATCHDIR}" echo "SCRATCHDIR=${SCRATCHDIR}"
- +
 ### creation du repertoire de travail dans le /scratch ### creation du repertoire de travail dans le /scratch
 if [[ ! -d "${SCRATCHDIR}" ]]  if [[ ! -d "${SCRATCHDIR}" ]] 
Ligne 97: Ligne 98:
    /bin/mkdir -p ${SCRATCHDIR}    /bin/mkdir -p ${SCRATCHDIR}
 fi  fi 
- +
 ### copie des fichiers sources dans le /scratch ### copie des fichiers sources dans le /scratch
 /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/ /bin/cp ${SGE_O_WORKDIR}/* ${SCRATCHDIR}/
Ligne 116: Ligne 117:
    
 # fin # fin
 +</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]].