Changeset 2210


Ignore:
Timestamp:
08/31/21 09:49:57 (3 years ago)
Author:
jderouillat
Message:

Setting XIOS_COULING test suite for Jean-Zay (validated in OpenMPI)

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/compile_jeanzay

    r1945 r2210  
    11#!/bin/bash 
    2 set -x  
     2#set -x  
    33export revision=$(svn info --show-item revision .. 2>&1) 
    44python config_compile.py 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/ENV/jeanzay.env

    r1944 r2210  
    1 module load subversion 
    2 module load cmake 
    3 module load python/3.7.5 
     1module load subversion   2>&1 
     2module load cmake        2>&1 
     3module load python/3.7.5 2>&1 
     4module load cdo/1.9.8    2>&1 
    45 
    56CHMOD() { setfacl -m u::rwX,u:rpsl565:rwX,u:rpsl954:rwX,u:rgzi016:rwX,g::r-X,o::r-X,m::rwX "$@" ;} 
     
    1213 
    1314export ref_location=/gpfswork/rech/psl/rpsl954/reference_dir 
     15export ref_location=/gpfswork/rech/psl/uim55ri/CI/reference/XIOS_COUPLING 
    1416export ref_file=reference.tar.gz 
    1517 
    1618export PYTHON=python 
    17 export user_account="wuu@cpu" 
     19export user_account="psl@cpu" 
    1820 
    1921mkdir -p $xios_test_suite_repository ; CHMOD $xios_test_suite_repository 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/my_run.sh

    r2140 r2210  
    4444  jobid="${cmd//[!0-9]/}" 
    4545  i=0 
    46   output=$(squeue -u rpsl954 | grep ${jobid}) 
     46  output=$(squeue -u uim55ri | grep ${jobid}) 
    4747  while [ ! -z "$output" ] 
    4848  do 
     
    5050    sleep 30 
    5151    ((i+=30)) 
    52     output=$(squeue -u rpsl954 | grep ${jobid}) 
     52    if [[ $i -eq 300 ]]; then 
     53      output=$(squeue -u uim55ri | grep ${jobid}) 
     54      scancel $jobid 
     55      break 
     56    fi 
    5357  done 
    5458fi 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/run_test

    r2036 r2210  
    1818  echo "#SBATCH --account="$user_account  >> compile.sh 
    1919  echo "#SBATCH --job-name=XIOS_rev"$svnR >> compile.sh 
     20  echo "#SBATCH --exclusive " >> compile.sh 
    2021  echo "cd \${SLURM_SUBMIT_DIR}">> compile.sh 
    2122  echo "ulimit -c 0">> compile.sh 
     
    2425  cmd=$(sbatch compile.sh) 
    2526  jobid="${cmd//[!0-9]/}" 
    26   output=$(squeue -u rpsl954 | grep ${jobid}) 
     27  output=$(squeue -u uim55ri | grep ${jobid}) 
    2728  while [ ! -z "$output" ] 
    2829  do 
     
    3031    sleep 30 
    3132    ((i+=30)) 
    32     output=$(squeue -u rpsl954 | grep ${jobid}) 
     33    output=$(squeue -u uim55ri | grep ${jobid}) 
    3334  done 
    3435 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/step1.py

    r2192 r2210  
    8585            fh.write("#SBATCH -t 00:10:00\n") 
    8686            fh.write("#SBATCH --account="+user_acct+"\n") 
     87            fh.write("#SBATCH --exclusive\n") 
    8788            fh.write("ulimit -c 0\n") 
    8889            fh.write("cd ${SLURM_SUBMIT_DIR}\n") 
     
    146147            fh.write("#SBATCH --account="+user_acct+"\n") 
    147148            fh.write("#SBATCH --job-name=XIOS_rev"+svnR+"\n") 
     149            fh.write("#SBATCH --exclusive\n") 
    148150            fh.write("ulimit -c 0\n") 
    149151            fh.write("cd ${SLURM_SUBMIT_DIR}\n") 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/step2.py

    r2173 r2210  
    8282                for checkfile in checkfiles: 
    8383                    if os.path.exists(config+"/"+checkfile) and os.path.exists("reference/ref_"+config+"/"+checkfile): 
    84                         OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"reference/ref_"+config+"/"+checkfile+"  2>&1 |grep -v 'Found more than one time variable'|grep -v 'cdo diffn: Processed'|grep -v 'Time variable >time_counter< not found!' > diff_"+checkfile+".txt") 
     84                        OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"reference/ref_"+config+"/"+checkfile+"  2>&1 |grep -v 'Found more than one time variable'|grep -v 'cdo diffn: Processed'|grep -v 'cdo    diffn: Processed'|grep -v 'Time variable >time_counter< not found!' > diff_"+checkfile+".txt") 
    8585                        if os.stat("diff_"+checkfile+".txt").st_size==0: # if no diff -> set 0 
    8686                            report.write(folder_name+" "+folder_name+"@"+config_name+" "+folder_name+"@"+config_name+"@"+checkfile+" "+str(1)+"\n") 
Note: See TracChangeset for help on using the changeset viewer.