Changeset 1355 for XIOS/dev/branch_openmp/src
- Timestamp:
- 12/05/17 16:24:42 (7 years ago)
- Location:
- XIOS/dev/branch_openmp/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/buffer_client.cpp
r1342 r1355 15 15 size_t CClientBuffer::maxRequestSize = 0; 16 16 17 CClientBuffer::CClientBuffer(MPI_Comm in terComm, int serverRank, StdSize bufferSize, StdSize estimatedMaxEventSize, StdSize maxBufferedEvents)18 :interComm(interComm)19 ,serverRank(serverRank)17 CClientBuffer::CClientBuffer(MPI_Comm in_interComm, int serverRank, StdSize bufferSize, StdSize estimatedMaxEventSize, StdSize maxBufferedEvents): 18 //interComm(interComm) 19 serverRank(serverRank) 20 20 , bufferSize(bufferSize) 21 21 , estimatedMaxEventSize(estimatedMaxEventSize) … … 27 27 , pending(false) 28 28 { 29 interComm = in_interComm; 30 *(interComm.mpi_comm) = *(in_interComm.mpi_comm); 31 *(interComm.ep_comm_ptr->intercomm->mpi_inter_comm) = *(in_interComm.ep_comm_ptr->intercomm->mpi_inter_comm); 29 32 buffer[0] = new char[bufferSize]; // transform it with MPI_ALLOC_MEM later 30 33 buffer[1] = new char[bufferSize]; -
XIOS/dev/branch_openmp/src/buffer_client.hpp
r1331 r1355 40 40 41 41 CBufferOut* retBuffer; 42 constep_lib::MPI_Comm interComm;42 ep_lib::MPI_Comm interComm; 43 43 }; 44 44 } -
XIOS/dev/branch_openmp/src/context_client.cpp
r1338 r1355 27 27 intraComm = intraComm_; 28 28 interComm = interComm_; 29 *(intraComm.mpi_comm) = *(intraComm_.mpi_comm); 30 *(interComm.mpi_comm) = *(interComm_.mpi_comm); 31 *(interComm.ep_comm_ptr->intercomm->mpi_inter_comm) = *(interComm_.ep_comm_ptr->intercomm->mpi_inter_comm); 32 //MPI_Comm_dup(intraComm_, &intraComm); 33 //MPI_Comm_dup(interComm_, &interComm); 29 34 MPI_Comm_rank(intraComm, &clientRank); 30 35 MPI_Comm_size(intraComm, &clientSize); -
XIOS/dev/branch_openmp/src/cxios.cpp
r1342 r1355 93 93 { 94 94 MPI_Comm *ep_comm; 95 MPI_Comm_create_endpoints(MPI_COMM_WORLD , num_ep, info, ep_comm); // servers should reach here too.95 MPI_Comm_create_endpoints(MPI_COMM_WORLD.mpi_comm, num_ep, info, ep_comm); // servers should reach here too. 96 96 passage = ep_comm; 97 97 } -
XIOS/dev/branch_openmp/src/io/inetcdf4.cpp
r1328 r1355 23 23 // even if Parallel NetCDF ends up being used. 24 24 if (mpi) 25 //CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, *comm, info_null, this->ncidp);26 CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, static_cast<MPI_Comm>(comm->mpi_comm), info_null.mpi_info, this->ncidp);25 CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, static_cast<MPI_Comm>(*(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 26 //CNetCdfInterface::openPar(filename, NC_NOWRITE | NC_MPIIO, *(static_cast<MPI_Comm*>(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 27 27 else 28 28 CNetCdfInterface::open(filename, NC_NOWRITE, this->ncidp); -
XIOS/dev/branch_openmp/src/io/onetcdf4.cpp
r1328 r1355 58 58 CTimer::get("Files : create").resume(); 59 59 if (wmpi) 60 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), info_null.mpi_info, this->ncidp); 60 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(*(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 61 //CNetCdfInterface::createPar(filename, mode, *(static_cast<MPI_Comm*>(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 61 62 else 62 63 CNetCdfInterface::create(filename, mode, this->ncidp); … … 70 71 CTimer::get("Files : open").resume(); 71 72 if (wmpi) 72 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), info_null.mpi_info, this->ncidp); 73 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(*(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 74 //CNetCdfInterface::openPar(filename, mode, *(static_cast<MPI_Comm*>(comm->mpi_comm)), info_null.mpi_info, this->ncidp); 73 75 else 74 76 CNetCdfInterface::open(filename, mode, this->ncidp);
Note: See TracChangeset
for help on using the changeset viewer.