Changeset 502 for configs


Ignore:
Timestamp:
12/08/16 11:06:35 (7 years ago)
Author:
dubos
Message:

configs/testing : towards first working version

Location:
configs/testing
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • configs/testing/bash/X64_CURIE.sh

    r501 r502  
    11#!/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' 
    29 
    310#----------------------------- split_XXX ---------------------------- 
     
    1118function split_mpi_80() { 
    1219    setvar nbp 81 nsplit_i 4 nsplit_j 2 
     20} 
     21 
     22#----------------- job submission ------------------ 
     23 
     24function 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 
    1331} 
    1432 
     
    4563#MSUB -T 600 
    4664## Quality of Service required (long [3 days], normal [1 day], test [30 min]) 
    47 #MSUB -Q test 
     65#MSUB -Q normal 
    4866 
    4967export OMP_NUM_THREADS=1 
     
    7795EOF 
    7896} 
     97 
     98#------------------------------ post-processing job ----------------------------- 
     99 
     100function 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 
     120export OMP_NUM_THREADS=1 
     121# this script is submitted from $ROOT/logs 
     122cd \${BRIDGE_MSUB_PWD}/.. 
     123 
     124module purge 
     125module load licsrv/intel 
     126module load c/intel/14.0.3.174 
     127module load c++/intel/14.0.3.174 
     128module load fortran/intel/14.0.3.174 
     129module load mkl/14.0.3.174 
     130module load idb/14.0.3.174 
     131module load intel/14.0.3.174 
     132module load mpi/bullxmpi/1.2.8.4 
     133module load netcdf/4.3.3.1_hdf5_parallel 
     134module load python 
     135 
     136bash/post.sh 
     137EOF 
     138} 
  • configs/testing/build.sh

    r501 r502  
    3838( main ) || ( echo ; echo "***************** Build FAILED ******************" ; exit 1) 
    3939 
     40echo "***************** Build : SUCCESS ******************" 
    4041echo "You may now run create_runs.sh" 
  • configs/testing/create_runs.sh

    r501 r502  
    1212    cd $EXPDIR 
    1313    ln -sf $ROOT/bin/icosa_${EXEC}.exe gcm.exe 
     14    ln -sf $ROOT/python/post_${EXP}.py post.py 
    1415    rundef_$EXP $* > tmp.def 
    1516    sort tmp.def | cut -c 7- > run.def 
  • configs/testing/setup.sh

    r501 r502  
    4646  # create separate build dirs sharing the same src/ and tools/ subdirs to save disk and time 
    4747  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 
    5355  for NAME in mpi mpi_omp ; do 
     56      echo "Creating build directory $ROOT/DYNAMICO_$NAME" 
     57      rm -rf $ROOT/DYNAMICO_$NAME 
    5458      cp -pr $BUILD $ROOT/DYNAMICO_$NAME 
    5559  done 
Note: See TracChangeset for help on using the changeset viewer.