Ceci est une ancienne révision du document !
The program SommeVecVecSEQ.f90 makes the sum of the two vectors A and B. The result is put in C.
Definition of the environment :
module avail
module load GCC/7.2.0
gfortran --version GNU Fortran (GCC) 7.2.0 Copyright (C) 2017 Free Software Foundation, Inc.
Compilation :
gfortran -o SommeVecVecSEQ.exe SommeVecVecSEQ.f90
The binary file (executable) SommeVecVecSEQ.f90.exe
has been generated.
./SommeVecVecSEQ.exe
The result is displayed on the screen :
Les deux vecteurs : A = 1 2 3 4 5 6 7 8 9 10 B = 9 8 7 6 5 4 3 2 1 0 Le vecteur somme : C = 10 10 10 10 10 10 10 10 10 10
We use a submission script batch.sh] to submit the job on compute clusters.
It is the submission script that configures the environment and then calls your binary (with its options, if any) on the execution node.
SGE → batch.csh → binaire
qsub batch.csh Your job 335982 ("SommeVecVecSEQ") has been submitted qstat job-ID prior name user state submit/start at queue slots ja-task-ID ----------------------------------------------------------------------------------------------------------------- 335982 0.00000 SommeVecVecSEQ ccalugar qw 02/14/2018 10:37:46 qstat job-ID prior name user state submit/start at queue slots ja-task-ID ----------------------------------------------------------------------------------------------------------------- 335982 0.07300 SommeVecVecSEQ ccalugar r 02/14/2018 10:38:54 E5_test@c8220node145 1
SommeVecVecSEQ.o335982
SommeVecVecSEQ.e335982
cat SommeVecVecSEQ.o335982 Les deux vecteurs : A = 1 2 3 4 5 6 7 8 9 10 B = 9 8 7 6 5 4 3 2 1 0 Le vecteur somme : C = 10 10 10 10 10 10 10 10 10 10