Changeset 502 for configs/testing/bash/X64_CURIE.sh
- Timestamp:
- 12/08/16 11:06:35 (7 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.