Last change
on this file since 2484 was
2416,
checked in by jderouillat, 23 months ago
|
Fix Irene test suite (XIOS2), python3/3.7.5 generates an OpenMPI error importing netCDF
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1907] | 1 | #!/bin/bash |
---|
[1899] | 2 | |
---|
| 3 | echo "running my_run.sh" |
---|
| 4 | |
---|
| 5 | export svnR=$(svn info --show-item revision ../../) |
---|
| 6 | svnurl=$(svn info --show-item url ../../) |
---|
| 7 | PWD=$(pwd) |
---|
| 8 | |
---|
| 9 | fn=report_${svnR}_${arch}_${mode}.txt |
---|
| 10 | echo "#revision" ${svnR} > ${fn} |
---|
| 11 | echo "#url" ${svnurl} >> ${fn} |
---|
| 12 | echo "#machine" ${xios_machine_name} >> ${fn} |
---|
| 13 | echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn} |
---|
| 14 | echo "#arch" $arch >> ${fn} |
---|
| 15 | echo "#mode" $mode >> ${fn} |
---|
| 16 | |
---|
| 17 | |
---|
[1907] | 18 | ${PYTHON} step1.py |
---|
[1899] | 19 | |
---|
[1907] | 20 | |
---|
[1899] | 21 | if [[ ${xios_machine_name} == "irene" ]]; then |
---|
| 22 | cmd=$(ccc_msub full_job_${arch}_${mode}.sh) |
---|
| 23 | jobid="${cmd//[!0-9]/}" |
---|
| 24 | |
---|
| 25 | i=0 |
---|
| 26 | output=$(ccc_mpp | grep ${jobid}) |
---|
| 27 | while [ ! -z "$output" ] |
---|
| 28 | do |
---|
[1915] | 29 | echo "job" $jobid "pending/running for about" ${i} seconds |
---|
[1924] | 30 | sleep 30 |
---|
| 31 | ((i+=30)) |
---|
[1899] | 32 | output=$(ccc_mpp | grep ${jobid}) |
---|
| 33 | done |
---|
| 34 | fi |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | if [[ ${xios_machine_name} == "jeanzay" ]]; then |
---|
| 39 | cmd=$(sbatch full_job_${arch}_${mode}.sh) |
---|
| 40 | jobid="${cmd//[!0-9]/}" |
---|
| 41 | i=0 |
---|
[2155] | 42 | output=$(squeue | grep ${jobid}) |
---|
[1899] | 43 | while [ ! -z "$output" ] |
---|
| 44 | do |
---|
[1915] | 45 | echo "job" $jobid "pending/running for about" ${i} seconds |
---|
[1924] | 46 | sleep 30 |
---|
| 47 | ((i+=30)) |
---|
[2155] | 48 | output=$(squeue | grep ${jobid}) |
---|
[1899] | 49 | done |
---|
| 50 | fi |
---|
| 51 | |
---|
| 52 | |
---|
[1907] | 53 | ${PYTHON} step2.py |
---|
Note: See
TracBrowser
for help on using the repository browser.