Ceci est une ancienne révision du document !


Fortran, Séquentiel

Script de soumission tcsh

batch.csh
#!/bin/tcsh
#
set QUEUE="monointelbig"
#
# Attention changer l'arborescence en ce qu'il faut
set HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE $HDIR/batchrun.csh

Script d'exécution tcsh

batchrun.csh
#!/bin/tcsh
#
# Attention changer l'arborescence en ce qu'il faut
set EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
cd ${WORKDIR}
 
#Eventuellement
#source /usr/local/modeles/gnu-4.6.3
 
#$ -cwd
#$ -V
 
${EXECDIR}/SommeVecVec.f90.exe

Script de soumission bash

batch.sh
#!/bin/bash
#
QUEUE="monointelbig"
#
# Attention changer l'arborescence en ce qu'il faut
HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE $HDIR/batchrun.sh

Script d'exécution bash

batchrun.sh
#!/bin/bash
#
# Attention changer l'arborescence en ce qu'il faut
EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
cd ${WORKDIR}
#
#Eventuellement
#/bin/tcsh /usr/local/modeles/gnu-4.6.3
#
#$ -cwd
#$ -V
#
${EXECDIR}/SommeVecVec.f90.exe

Fortran, parallèle

Script de soumission tcsh parallèle

batch.csh
#!/bin/tcsh
#
set QUEUE="r410B_ib_test"
#QUEUE="dl165_ib_test"
#QUEUE="c6100_ib_test"
set SQUEUE="test"
set NPROC="2"
#
# Attention changer l'arborescence en ce qu'il faut
set HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE -pe $SQUEUE $NPROC $HDIR/batchrun.csh

Script d'exécution tcsh parallèle

batchrun.csh
#!/bin/tcsh
#
# Attention changer l'arborescence en ce qu'il faut
set EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
set HOSTFILE=${TMPDIR}/machines
#
set PREFIX="/softs/openmpi-1.4.5-gcc-4.6.3"
set MPIRUN=${PREFIX}/bin/mpirun
#
cd ${WORKDIR}
#
#$ -cwd
#$ -V
#
$MPIRUN -v --prefix ${PREFIX} --hostfile ${HOSTFILE} -np ${NSLOTS} ${EXECDIR}/SommeVecVec.exe

C, Séquentiel

Script de soumission tcsh

batch.csh
#!/bin/tcsh
#
set QUEUE="monointelbig"
#
# Attention changer l'arborescence en ce qu'il faut
set HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE $HDIR/batchrun.csh

Script d'exécution tcsh

batchrun.csh
#!/bin/tcsh
#
# Attention changer l'arborescence en ce qu'il faut
set EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
cd ${WORKDIR}
 
#Eventuellement
#source /usr/local/modeles/gnu-4.6.3
 
#$ -cwd
#$ -V
 
${EXECDIR}/SommeVecVec.c.exe

Script de soumission bash

batch.sh
#!/bin/bash
#
QUEUE="monointelbig"
#
# Attention changer l'arborescence en ce qu'il faut
HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE $HDIR/batchrun.sh

Script d'exécution bash

batchrun.sh
#!/bin/bash
#
# Attention changer l'arborescence en ce qu'il faut
EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecSeq"
#
cd ${WORKDIR}
#
#Eventuellement
#/bin/tcsh /usr/local/modeles/gnu-4.6.3
#
#$ -cwd
#$ -V
#
${EXECDIR}/SommeVecVec.c.exe

C, parallèle

Script de soumission tcsh parallèle

batch.csh
#!/bin/tcsh
#
set QUEUE="r410B_ib_test"
#QUEUE="dl165_ib_test"
#QUEUE="c6100_ib_test"
set SQUEUE="test"
set NPROC="2"
#
# Attention changer l'arborescence en ce qu'il faut
set HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE -pe $SQUEUE $NPROC $HDIR/batchrun.csh

Script d'exécution tcsh parallèle

batchrun.csh
#!/bin/tcsh
#
# Attention changer l'arborescence en ce qu'il faut
set EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
set WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
set HOSTFILE=${TMPDIR}/machines
#
set PREFIX="/softs/openmpi-1.4.5-gcc-4.6.3"
set MPIRUN=${PREFIX}/bin/mpirun
#
cd ${WORKDIR}
#
#$ -cwd
#$ -V
#
$MPIRUN -v --prefix ${PREFIX} --hostfile ${HOSTFILE} -np ${NSLOTS} ${EXECDIR}/SommeVecVec.c.exe

Script de soumission bash parallèle

batch.sh
#!/bin/bash
#
QUEUE="r410_ib_test"
#QUEUE="dl165_ib_test"
#QUEUE="c6100_ib_test"
SQUEUE="test"
NPROC="2"
#
# Attention changer l'arborescence en ce qu'il faut
HDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
/usr/local/sge/bin/lx24-amd64/qsub -V -m b -m e -e ${WORKDIR} -o ${WORKDIR} -q $QUEUE -pe $SQUEUE $NPROC $HDIR/batchrun.sh

Script d'exécution bash parallèle

batchrun.sh
#!/bin/bash
#
# Attention changer l'arborescence en ce qu'il faut
EXECDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
WORKDIR="/home/cicaluga/Support/FormationPSMN/SommeVecVecPar"
#
HOSTFILE=${TMPDIR}/machines
#
PREFIX="/softs/openmpi-1.4.5-gcc-4.6.3"
MPIRUN=${PREFIX}/bin/mpirun
#
cd ${WORKDIR}
#
#$ -cwd
#$ -V
#
$MPIRUN -v --prefix ${PREFIX} --hostfile ${HOSTFILE} -np ${NSLOTS} ${EXECDIR}/SommeVecVecC.exe
documentation/examples/scripts.1360171182.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)