Changeset 502 for configs/testing
- Timestamp:
- 12/08/16 11:06:35 (8 years ago)
- Location:
- configs/testing
- Files:
-
- 10 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configs/testing/bash/X64_CURIE.sh
r501 r502 1 1 #!/bin/bash 2 3 # This script provides site-specific functions 4 # called by the site-independent scripts 5 # create_runs.sh and submit.sh 6 7 # NB : we must the queue 'normal' because there seems to be a limit 8 # on the number of jobs that can be submitted to queue 'test' 2 9 3 10 #----------------------------- split_XXX ---------------------------- … … 11 18 function split_mpi_80() { 12 19 setvar nbp 81 nsplit_i 4 nsplit_j 2 20 } 21 22 #----------------- job submission ------------------ 23 24 function submit_job_X64_CURIE() # $1=script $* = SLURM OPTIONS 25 { 26 TMP=$(mktemp) 27 ccc_msub $1 > $TMP 28 cat $TMP 1>&2 29 cat $TMP | awk '{print $NF }' 30 rm -f $TMP 13 31 } 14 32 … … 45 63 #MSUB -T 600 46 64 ## Quality of Service required (long [3 days], normal [1 day], test [30 min]) 47 #MSUB -Q test65 #MSUB -Q normal 48 66 49 67 export OMP_NUM_THREADS=1 … … 77 95 EOF 78 96 } 97 98 #------------------------------ post-processing job ----------------------------- 99 100 function job_post_X64_CURIE() # LIST 101 { 102 DEPLIST=afterany 103 for ID in $* ; do 104 DEPLIST="$DEPLIST:$ID" 105 done 106 cat <<EOF 107 #!/bin/bash 108 ## Request name 109 #MSUB -r testing 110 #MSUB -q standard 111 #MSUB -A gen7548 112 #MSUB -E "--dependency=$DEPLIST" 113 ## Number of tasks (=MPI processes) to use 114 #MSUB -n 1 115 ## Elapsed time limit in seconds 116 #MSUB -T 600 117 ## Quality of Service required (long [3 days], normal [1 day], test [30 min]) 118 #MSUB -Q normal 119 120 export OMP_NUM_THREADS=1 121 # this script is submitted from $ROOT/logs 122 cd \${BRIDGE_MSUB_PWD}/.. 123 124 module purge 125 module load licsrv/intel 126 module load c/intel/14.0.3.174 127 module load c++/intel/14.0.3.174 128 module load fortran/intel/14.0.3.174 129 module load mkl/14.0.3.174 130 module load idb/14.0.3.174 131 module load intel/14.0.3.174 132 module load mpi/bullxmpi/1.2.8.4 133 module load netcdf/4.3.3.1_hdf5_parallel 134 module load python 135 136 bash/post.sh 137 EOF 138 } -
configs/testing/build.sh
r501 r502 38 38 ( main ) || ( echo ; echo "***************** Build FAILED ******************" ; exit 1) 39 39 40 echo "***************** Build : SUCCESS ******************" 40 41 echo "You may now run create_runs.sh" -
configs/testing/create_runs.sh
r501 r502 12 12 cd $EXPDIR 13 13 ln -sf $ROOT/bin/icosa_${EXEC}.exe gcm.exe 14 ln -sf $ROOT/python/post_${EXP}.py post.py 14 15 rundef_$EXP $* > tmp.def 15 16 sort tmp.def | cut -c 7- > run.def -
configs/testing/setup.sh
r501 r502 46 46 # create separate build dirs sharing the same src/ and tools/ subdirs to save disk and time 47 47 BUILD=$ROOT/DYNAMICO_serial 48 cp -pr $ROOT/DYNAMICO $BUILD 49 rm -rf $BUILD/src 50 rm -rf $BUILD/tools 51 ln -sf $ROOT/DYNAMICO/src $BUILD/src 52 ln -sf $ROOT/DYNAMICO/tools $BUILD/tools 48 echo "Creating build directory $BUILD" 49 rm -rf $BUILD 50 mkdir -p $BUILD 51 cd $ROOT/DYNAMICO 52 for NAME in arch build compile make_icosa src bld.cfg clean doc tools ; do 53 ln -s $ROOT/DYNAMICO/$NAME $BUILD/ 54 done 53 55 for NAME in mpi mpi_omp ; do 56 echo "Creating build directory $ROOT/DYNAMICO_$NAME" 57 rm -rf $ROOT/DYNAMICO_$NAME 54 58 cp -pr $BUILD $ROOT/DYNAMICO_$NAME 55 59 done
Note: See TracChangeset
for help on using the changeset viewer.