Last change
on this file since 344 was
344,
checked in by dumas, 3 years ago
|
Back to intel 2013 compiler while waiting to optimize the compiler options on the 2020 version that crashes
|
-
Property svn:executable set to
*
|
File size:
892 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Script pour lancer grisli en batch au LSCE |
---|
3 | # Works for the |
---|
4 | #PBS -N RUNNAME |
---|
5 | # Specify batch queue |
---|
6 | #PBS -q longp |
---|
7 | #PBS -v BATCH_NUM_PROC_TOT=4 |
---|
8 | #PBS -l nodes=1:ppn=4 |
---|
9 | # Specify execution shell |
---|
10 | ##PBS -S /bin/bash |
---|
11 | # Request that stdin and stdout are merged in the same output file |
---|
12 | #PBS -j eo |
---|
13 | # Send a mail when the job terminates |
---|
14 | #PBS -m e -M christophe.dumas@lsce.ipsl.fr |
---|
15 | |
---|
16 | export MKL_NUM_THREADS=4 |
---|
17 | export OMP_NUM_THREADS=4 |
---|
18 | export KMP_STACKSIZE=16000000 #2048000000 # KMP_STACKSIZE remplace OMP_STACKSIZE avec ifort |
---|
19 | |
---|
20 | module load netcdf/4 |
---|
21 | module load intel-fcomp/2013 |
---|
22 | |
---|
23 | MODEL="SOURCESREP" |
---|
24 | EXEDIR="EXEREP" |
---|
25 | |
---|
26 | |
---|
27 | echo "Grisli is being compiled..." |
---|
28 | cd $MODEL |
---|
29 | make clean && make EXE_NAME |
---|
30 | |
---|
31 | cd $EXEDIR |
---|
32 | LID=`date +%y%m%d-%H%M%S` |
---|
33 | echo "`date` -- GRISLI EXECUTION BEGINS HERE" |
---|
34 | ./EXE_NAME >& EXE_NAME.log.$LID |
---|
35 | |
---|
36 | wait |
---|
37 | echo "`date` -- GRISLI EXECUTION HAS FINISHED" |
---|
38 | |
---|
39 | # Clean the sources? |
---|
40 | #rm -rf $MODEL |
---|
Note: See
TracBrowser
for help on using the repository browser.