- Timestamp:
- 10/17/19 17:22:04 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_omp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/job_irene.sh
r1745 r1746 48 48 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe 49 49 50 51 52 53 #============================= Run EP with IntelMPI ============================= 54 55 56 57 export machine_name=irene 58 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 59 export build_dir=build_ep_intelmpi_prod 60 61 rm -f setup.sh 62 touch setup.sh 63 >setup.sh 64 for i in $(ls -d test_*/) 65 do 66 cp setup.py ${i%%/} 67 cp run_sub_test.sh ${i%%/} 68 echo "bash -c \"cd " ${i%%/} " && python setup.py\" ">> setup.sh 69 echo "echo \"setup.py called from " ${i%%/} "\"">> setup.sh 70 done 71 72 export output=$(python user_config.py 2>&1 >/dev/null) 73 74 if [ "$output" -ne 0 ] 75 then 76 echo "user_config.py failed" 77 exit 78 else 79 echo "user_config.py OK" 80 fi 81 82 83 cmake . 84 ctest -V 85 #ctest --output-on-failure 86 make report 87 88 #echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr 89 90 rm -f test_*/setup.py 91 rm -f test_*/run_sub_test.sh 92 rm -f test_*/run_test_*.py 93 rm -f test_*/CMakeLists.txt 94 rm -f test_*/context_grid_dynamico.xml 95 rm -f test_*/dynamico_grid.nc 96 rm -f test_*/default_param.pyc 97 rm -f test_*/user_param.pyc 98 rm -f test_*/user_param.py.* 99 100 rm -f report_ep_intelmpi.* 101 cp report.txt report_ep_intelmpi.txt 102 cp report.html report_ep_intelmpi.html 103 104 105 106 107 108 #============================= Run MPI with IntelMPI ============================= 109 110 111 112 113 114 115 116 117 50 118 export machine_name=irene 51 119 export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp … … 79 147 make report 80 148 81 echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr149 #echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr 82 150 83 151 rm -f test_*/setup.py … … 91 159 rm -f test_*/user_param.py.* 92 160 161 rm -f report_mpi_intelmpi.* 162 cp report.txt report_mpi_intelmpi.txt 163 cp report.html report_mpi_intelmpi.html -
XIOS/dev/dev_trunk_omp/extern/src_ep_dev/ep_fortran.cpp
r1730 r1746 16 16 Debug("MPI_Comm_c2f"); 17 17 void* fint = new MPI_Fint; 18 #ifdef _intelmpi 19 *static_cast< ::MPI_Fint*>(fint) = (::MPI_Fint)(to_mpi_comm(comm->mpi_comm)); 20 #elif _openmpi 18 //#ifdef _intelmpi 19 //*static_cast< ::MPI_Fint*>(fint) = (::MPI_Fint)(to_mpi_comm(comm->mpi_comm)); 20 //*static_cast< MPI_Fint*>(fint) = MPI_Comm_c2f(to_mpi_comm(comm->mpi_comm)); 21 //#elif _openmpi 21 22 *static_cast< MPI_Fint*>(fint) = MPI_Comm_c2f(to_mpi_comm(comm->mpi_comm)); 22 #endif23 //#endif 23 24 24 25 std::map<std::pair< MPI_Fint, int>, ep_lib::MPI_Comm > ::iterator it; … … 60 61 61 62 MPI_Comm *base_comm = new MPI_Comm; 62 #ifdef _intelmpi 63 *base_comm = (MPI_Comm)(*static_cast< MPI_Fint*>(comm)); 64 #elif _openmpi 63 //#ifdef _intelmpi 64 //*base_comm = (MPI_Comm)(*static_cast< MPI_Fint*>(comm)); 65 //*base_comm = MPI_Comm_f2c(*static_cast< MPI_Fint*>(comm)); 66 //#elif _openmpi 65 67 *base_comm = MPI_Comm_f2c(*static_cast< MPI_Fint*>(comm)); 66 #endif68 //#endif 67 69 68 70 if(*base_comm != to_mpi_comm(MPI_COMM_NULL->mpi_comm)) -
XIOS/dev/dev_trunk_omp/extern/src_ep_dev/ep_probe.cpp
r1646 r1746 24 24 ::MPI_Message mpi_message; 25 25 26 #ifdef _openmpi 27 #pragma omp critical (_mpi_call) 26 //#ifdef _openmpi 27 ::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), flag, &mpi_message, &mpi_status); 28 /*#pragma omp critical (_mpi_call) 28 29 { 29 30 ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), flag, &mpi_status); … … 32 33 ::MPI_Mprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), &mpi_message, &mpi_status); 33 34 } 34 } 35 #elif _intelmpi36 ::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), flag, &mpi_message, &mpi_status);37 #endif35 }*/ 36 //#elif _intelmpi 37 //::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), flag, &mpi_message, &mpi_status); 38 //#endif 38 39 39 40 status->mpi_status = new ::MPI_Status(mpi_status);
Note: See TracChangeset
for help on using the changeset viewer.