Changeset 1947
- Timestamp:
- 10/05/20 11:58:58 (4 years ago)
- Location:
- XIOS/trunk/xios_test_suite
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/xios_test_suite/COMPILE/config_compile.py
r1944 r1947 26 26 f.write("#MSUB -e client_error.err\n") 27 27 f.write("#MSUB -eo\n") 28 f.write("#MSUB -c 48\n")28 f.write("#MSUB -c 16\n") 29 29 f.write("#MSUB -n 1\n") 30 30 f.write("#MSUB -X\n") … … 50 50 f.write("#=====================================\n") 51 51 f.write("#SBATCH --ntasks=1\n") 52 f.write("#SBATCH --cpus-per-task= 40\n")52 f.write("#SBATCH --cpus-per-task=16\n") 53 53 f.write("#SBATCH --hint=nomultithread\n") 54 54 f.write("#SBATCH -t 00:30:00\n") -
XIOS/trunk/xios_test_suite/TEST_SUITE/run_test
r1946 r1947 10 10 rm -f compile.sh 11 11 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 13 14 echo "#SBATCH --hint=nomultithread ">> compile.sh 14 15 echo "#SBATCH -t 00:30:00 " >> compile.sh … … 19 20 echo "ulimit -c 0">> compile.sh 20 21 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 23 34 fi 24 35 … … 30 41 echo "#MSUB -e compile.err" >> compile.sh 31 42 echo "#MSUB -eo" >> compile.sh 32 echo "#MSUB -c 4" >> compile.sh43 echo "#MSUB -c 16" >> compile.sh 33 44 echo "#MSUB -n 1" >> compile.sh 34 45 echo "#MSUB -X" >> compile.sh … … 40 51 echo "#MSUB -m work,scratch" >> compile.sh 41 52 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 44 65 fi 45 66 46 export build_info=$(tail -n 50 compile.out)47 if [[ $build_info == *" Build command finished"* ]]; then67 build_info=$(sacct -j $jobid -o State) 68 if [[ $build_info == *"COMPLETED"* ]]; then 48 69 build_ok=true 49 70 else
Note: See TracChangeset
for help on using the changeset viewer.