- Timestamp:
- 08/12/20 17:08:28 (4 years ago)
- Location:
- configs/testing
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configs/testing/RUNS_arch/README
r1043 r1044 1 1 This tree contains sample configuration files for various machines and test cases. 2 Each experiment folder is of the form ./ARCH/TESTCASE . 3 In folders ARCH, the file build.sh specifies commands to compile XIOS and DYNAMICO. 2 4 3 5 In each experiment folder one should create a symlink called 'build' to the directory where DYNAMICO has been compiled. -
configs/testing/bash/build.sh
r1041 r1044 1 1 #!/bin/bash 2 2 3 function build_dynamico_() 4 { 5 NAME=$1 ; shift 6 LOGFILE=$1 ; shift 7 echo "# command used to build DYNAMICO ($NAME) :" >> logs/build.sh 8 echo "./make_icosa $*" >> logs/build.sh 9 10 cd $ROOT/build_$NAME 11 echo "In $PWD : building DYNAMICO with options $*" 12 echo "Watch logfile $LOGFILE" 13 14 ./make_icosa $* > $LOGFILE 2>&1 15 } 16 3 17 function build_dynamico() 4 18 { 5 19 NAME=$1 ; shift 20 LOGFILE=$ROOT/logs/dynamico_${NAME}.log 6 21 BUILD=$ROOT/build_$NAME 7 LOGFILE=$ROOT/logs/dynamico_${NAME}.log 8 cd $ROOT/build_$NAME 9 echo "In $PWD : building DYNAMICO with options $*" 10 echo "Watch logfile $LOGFILE" 11 # ./make_icosa -full -arch $arch -job $job $* > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) 12 ./make_icosa -arch $arch -job $job $* > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) 22 build_dynamico_ $NAME $LOGFILE -arch $arch -job $job $* || ( tail $LOGFILE ; exit 1 ) 13 23 cp -pr $BUILD/bin/icosa_gcm.exe $ROOT/bin/icosa_$NAME.exe 14 24 } 15 25 16 function main() 17 { 18 LOGFILE=$ROOT/logs/build_xios.log 26 function build_xios() 27 { 28 LOGFILE=$1 ; shift 29 echo '# command used to build XIOS :' >> logs/build.sh 30 echo "./make_xios $*" >> logs/build.sh 31 19 32 cd -P $ROOT/XIOS 20 33 echo "In $PWD : Building XIOS" 21 echo "./make_xios --arch $arch $other_XIOS --job $job"22 34 echo "Watch logfile $LOGFILE" 23 ./make_xios --arch $arch_XIOS $other_XIOS --job $job > $LOGFILE 2>&1 || ( tail $LOGFILE ; exit 1 ) 35 echo "./make_xios $*" 36 ./make_xios $* > $LOGFILE 2>&1 37 } 38 39 function main() 40 { 41 rm -f tmp/build.sh 42 LOGFILE=$ROOT/logs/build_xios.log 43 build_xios $LOGFILE --arch $arch_XIOS $other_XIOS --job $job || ( tail $LOGFILE ; exit 1 ) 44 24 45 cd $ROOT 25 46 # compile all variants in parallel -
configs/testing/bash/create_runs.sh
r1041 r1044 218 218 rm -f RUNS 219 219 ln -sf RUNS_arch/${arch} RUNS 220 cp logs/build.sh RUNS/ 220 221 cd RUNS 221 222
Note: See TracChangeset
for help on using the changeset viewer.