Changeset 1947


Ignore:
Timestamp:
10/05/20 11:58:58 (4 years ago)
Author:
yushan
Message:

trunk : modif for check job status

Location:
XIOS/trunk/xios_test_suite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/xios_test_suite/COMPILE/config_compile.py

    r1944 r1947  
    2626        f.write("#MSUB -e client_error.err\n") 
    2727        f.write("#MSUB -eo\n") 
    28         f.write("#MSUB -c 48\n") 
     28        f.write("#MSUB -c 16\n") 
    2929        f.write("#MSUB -n 1\n") 
    3030        f.write("#MSUB -X\n") 
     
    5050        f.write("#=====================================\n") 
    5151        f.write("#SBATCH --ntasks=1\n") 
    52         f.write("#SBATCH --cpus-per-task=40\n") 
     52        f.write("#SBATCH --cpus-per-task=16\n") 
    5353        f.write("#SBATCH --hint=nomultithread\n") 
    5454        f.write("#SBATCH -t 00:30:00\n") 
  • XIOS/trunk/xios_test_suite/TEST_SUITE/run_test

    r1946 r1947  
    1010  rm -f compile.sh 
    1111  echo "#!/bin/bash" >> compile.sh  
    12   echo "#SBATCH --ntasks=4 ">> compile.sh 
     12  echo "#SBATCH --ntasks=1 ">> compile.sh 
     13  echo "#SBATCH --cpus-per-task=16 ">> compile.sh 
    1314  echo "#SBATCH --hint=nomultithread ">> compile.sh 
    1415  echo "#SBATCH -t 00:30:00  " >> compile.sh 
     
    1920  echo "ulimit -c 0">> compile.sh 
    2021  echo "cd ../.. ">> compile.sh 
    21   echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" >> compile.sh 
    22   sbatch --wait compile.sh 
     22  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 16" >> compile.sh 
     23  cmd=$(sbatch compile.sh) 
     24  jobid="${cmd//[!0-9]/}" 
     25  output=$(squeue -u rpsl954 | grep ${jobid}) 
     26  while [ ! -z "$output" ] 
     27  do 
     28    echo "compiling job " $jobid "pending/running for about" ${i} seconds 
     29    sleep 30 
     30    ((i+=30)) 
     31    output=$(squeue -u rpsl954 | grep ${jobid}) 
     32  done 
     33 
    2334fi 
    2435 
     
    3041  echo "#MSUB -e compile.err" >> compile.sh 
    3142  echo "#MSUB -eo" >> compile.sh 
    32   echo "#MSUB -c 4" >> compile.sh 
     43  echo "#MSUB -c 16" >> compile.sh 
    3344  echo "#MSUB -n 1" >> compile.sh 
    3445  echo "#MSUB -X" >> compile.sh 
     
    4051  echo "#MSUB -m work,scratch" >> compile.sh 
    4152  echo "cd ../.. ">> compile.sh 
    42   echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" >> compile.sh 
    43   ccc_msub -E "--wait" compile.sh 
     53  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 16" >> compile.sh 
     54  cmd=$(ccc_msub compile.sh) 
     55  output=$(ccc_mpp | grep ${jobid}) 
     56  jobid="${cmd//[!0-9]/}" 
     57  while [ ! -z "$output" ] 
     58  do 
     59    echo "compiling job " $jobid "pending/running for about" ${i} seconds 
     60    sleep 30 
     61    ((i+=30)) 
     62    output=$(ccc_mpp | grep ${jobid}) 
     63  done 
     64 
    4465fi 
    4566 
    46 export build_info=$(tail -n 50 compile.out) 
    47 if [[ $build_info == *"Build command finished"* ]]; then 
     67build_info=$(sacct -j $jobid -o State) 
     68if [[ $build_info == *"COMPLETED"* ]]; then 
    4869  build_ok=true 
    4970else 
Note: See TracChangeset for help on using the changeset viewer.