Changeset 1068 for XIOS/dev/branch_yushan/src
- Timestamp:
- 03/09/17 12:19:33 (7 years ago)
- Location:
- XIOS/dev/branch_yushan/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/client.cpp
r1067 r1068 230 230 MPI_Comm_rank(intraComm,&rank) ; 231 231 232 printf("CClient::finalize called isServer = %d\n", CXios::isServer);232 //printf("CClient::finalize called isServer = %d\n", CXios::isServer); 233 233 234 234 if (!CXios::isServer) … … 238 238 { 239 239 MPI_Send(&msg,1,MPI_INT,0,0,interComm) ; 240 printf(" CClient : send finalize sign to server 0\n");240 //printf(" CClient : send finalize sign to server 0\n"); 241 241 } 242 242 } -
XIOS/dev/branch_yushan/src/cxios.cpp
r1060 r1068 77 77 MPI_Info info; 78 78 MPI_Comm *ep_comm; 79 MPI_Comm_create_endpoints(MPI_COMM_WORLD, num_ep, info, ep_comm); // servers should reach here too. 80 81 globalComm = ep_comm[0]; 79 if(omp_get_thread_num()==0) 80 { 81 MPI_Comm_create_endpoints(MPI_COMM_WORLD, num_ep, info, ep_comm); // servers should reach here too. 82 passage = ep_comm; 83 } 84 85 #pragma omp barrier 86 87 globalComm = passage[omp_get_thread_num()]; 82 88 83 89 int tmp_size; -
XIOS/dev/branch_yushan/src/interface/c/icdata.cpp
r1067 r1068 64 64 MPI_Initialized(&initialized); 65 65 66 #ifdef _usingEP 66 67 if (initialized) local_comm = ep_lib::EP_Comm_f2c(static_cast< int >(*f_local_comm)); 67 68 else local_comm = MPI_COMM_NULL; 68 69 #else 70 if (initialized) local_comm=MPI_Comm_f2c(*f_local_comm); 71 else local_comm = MPI_COMM_NULL; 72 #endif 69 73 70 74 71 75 CXios::initClientSide(str, local_comm, return_comm); 72 76 77 #ifdef _usingEP 73 78 *f_return_comm = ep_lib::EP_Comm_c2f(return_comm); 74 75 //printf("in icdata.cpp, f_return_comm = %d\n", *f_return_comm); 79 #else 80 *f_return_comm = MPI_Comm_c2f(return_comm); 81 #endif 76 82 77 83 CTimer::get("XIOS init").suspend(); … … 89 95 comm = ep_lib::EP_Comm_f2c(static_cast< int >(*f_comm)); 90 96 91 //ep_lib::MPI_Comm ctx_comm;92 //ep_lib::MPI_Comm_dup(comm, &ctx_comm);93 97 94 98 CClient::registerContext(str,comm); 95 99 96 printf("icdata.cpp: client register context %s : %p\n", context_id, &comm);100 //printf("icdata.cpp: client register context %s : %p\n", context_id, &comm); 97 101 98 102 CTimer::get("XIOS init context").suspend(); -
XIOS/dev/branch_yushan/src/interface/c/oasis_cinterface.cpp
r1053 r1068 26 26 27 27 fxios_oasis_get_localcomm(&f_comm) ; 28 //comm=MPI_Comm_f2c(f_comm) ; 28 #ifdef _usingEP 29 comm=EP_Comm_f2c(f_comm.mpi_fint) ; 30 #else 31 comm=MPI_Comm_f2c(f_comm) ; 32 #endif 29 33 } 30 34 … … 34 38 35 39 fxios_oasis_get_intracomm(&f_comm,server_id.data(),server_id.size()) ; 36 //comm_client_server=MPI_Comm_f2c(f_comm) ; 40 #ifdef _usingEP 41 comm_client_server=EP_Comm_f2c(f_comm.mpi_fint) ; 42 #else 43 comm_client_server=MPI_Comm_f2c(f_comm) ; 44 #endif 37 45 } 38 46 … … 42 50 43 51 fxios_oasis_get_intercomm(&f_comm,server_id.data(),server_id.size()) ; 44 //comm_client_server=MPI_Comm_f2c(f_comm) ; 52 #ifdef _usingEP 53 comm_client_server=EP_Comm_f2c(f_comm.mpi_fint) ; 54 #else 55 comm_client_server=MPI_Comm_f2c(f_comm) ; 56 #endif 45 57 } 46 58 } -
XIOS/dev/branch_yushan/src/io/onetcdf4.cpp
r1063 r1068 47 47 wmpi = comm && !multifile; 48 48 49 ep_lib::MPI_Info info_null;49 //ep_lib::MPI_Info info_null; 50 50 51 51 if (wmpi) … … 57 57 if (wmpi) 58 58 { 59 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 60 printf("creating file with createPar\n"); 59 // printf("start creating file with createPar\n"); 60 //CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 61 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 62 // printf("creating file with createPar\n"); 61 63 } 62 64 else … … 74 76 if (wmpi) 75 77 { 76 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 77 printf("opening file with openPar\n"); 78 // printf("start opening file with openPar\n"); 79 // CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 80 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 81 // printf("opening file with openPar\n"); 78 82 } 79 83 else
Note: See TracChangeset
for help on using the changeset viewer.