Changeset 1746 for XIOS


Ignore:
Timestamp:
10/17/19 17:22:04 (5 years ago)
Author:
yushan
Message:

Generic_testcase: remove _openmpi _intelmpi flags. EP library is no longer sensitive to the underlying MPI library. Tested on Irene with generic_testcase

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  
    4848#ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe 
    4949 
     50 
     51 
     52 
     53#============================= Run EP with IntelMPI ============================= 
     54 
     55 
     56 
     57export machine_name=irene 
     58export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 
     59export build_dir=build_ep_intelmpi_prod 
     60 
     61rm -f setup.sh 
     62touch setup.sh 
     63>setup.sh 
     64for i in $(ls -d test_*/) 
     65do 
     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 
     70done 
     71 
     72export output=$(python user_config.py 2>&1 >/dev/null) 
     73 
     74if [ "$output" -ne 0 ] 
     75then 
     76        echo "user_config.py failed" 
     77        exit 
     78else 
     79        echo "user_config.py OK" 
     80fi 
     81 
     82 
     83cmake . 
     84ctest -V  
     85#ctest --output-on-failure 
     86make report 
     87 
     88#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr 
     89 
     90rm -f test_*/setup.py 
     91rm -f test_*/run_sub_test.sh 
     92rm -f test_*/run_test_*.py 
     93rm -f test_*/CMakeLists.txt 
     94rm -f test_*/context_grid_dynamico.xml 
     95rm -f test_*/dynamico_grid.nc 
     96rm -f test_*/default_param.pyc 
     97rm -f test_*/user_param.pyc 
     98rm -f test_*/user_param.py.* 
     99 
     100rm -f report_ep_intelmpi.* 
     101cp report.txt report_ep_intelmpi.txt 
     102cp 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 
    50118export machine_name=irene 
    51119export xios_dir=/ccc/cont003/home/gencmip6/wangyush/XIOS/dev_trunk_omp 
     
    79147make report 
    80148 
    81 echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr 
     149#echo "Generic testcase report" | mailx -s "report" -a report.html yushan.wang@lsce.ipsl.fr 
    82150 
    83151rm -f test_*/setup.py 
     
    91159rm -f test_*/user_param.py.* 
    92160 
     161rm -f report_mpi_intelmpi.* 
     162cp report.txt report_mpi_intelmpi.txt 
     163cp report.html report_mpi_intelmpi.html 
  • XIOS/dev/dev_trunk_omp/extern/src_ep_dev/ep_fortran.cpp

    r1730 r1746  
    1616    Debug("MPI_Comm_c2f"); 
    1717    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 
    2122    *static_cast< MPI_Fint*>(fint) = MPI_Comm_c2f(to_mpi_comm(comm->mpi_comm)); 
    22     #endif 
     23    //#endif 
    2324     
    2425    std::map<std::pair< MPI_Fint, int>, ep_lib::MPI_Comm > ::iterator it; 
     
    6061     
    6162    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 
    6567    *base_comm = MPI_Comm_f2c(*static_cast< MPI_Fint*>(comm)); 
    66     #endif 
     68    //#endif 
    6769 
    6870    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  
    2424    ::MPI_Message mpi_message; 
    2525 
    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) 
    2829    { 
    2930      ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), flag, &mpi_status); 
     
    3233        ::MPI_Mprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm->mpi_comm), &mpi_message, &mpi_status); 
    3334      } 
    34     } 
    35     #elif _intelmpi 
    36     ::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     #endif 
     35    }*/ 
     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 
    3839       
    3940    status->mpi_status = new ::MPI_Status(mpi_status); 
Note: See TracChangeset for help on using the changeset viewer.