Changeset 2556
- Timestamp:
- 09/04/23 12:19:46 (17 months ago)
- Location:
- XIOS3/trunk/src/transport
- Files:
-
- 10 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/transport/context_client.cpp
r2551 r2556 17 17 #include <chrono> 18 18 #include "one_sided_context_client.hpp" 19 #include "p2p_context_client.hpp" 19 20 #include "legacy_context_client.hpp" 20 21 #include "online_context_client.hpp" … … 59 60 string defaultProtocol = CXios::getin<string>("transport_protocol", "default") ; 60 61 if (defaultProtocol=="one_sided") return getNew<CContextClient::oneSided>(parent, intraComm, interComm) ; 62 else if (defaultProtocol=="p2p") return getNew<CContextClient::p2p>(parent, intraComm, interComm) ; 61 63 else if (defaultProtocol=="legacy") return getNew<CContextClient::legacy>(parent, intraComm, interComm) ; 62 64 else if (defaultProtocol=="online") return getNew<CContextClient::online>(parent, intraComm, interComm) ; … … 70 72 { 71 73 return new COneSidedContextClient(parent, intraComm, interComm, parentServer); 74 } 75 76 template<> 77 CContextClient* CContextClient::getNew<CContextClient::p2p>(CContext* parent, MPI_Comm intraComm, MPI_Comm interComm, CContext* parentServer) 78 { 79 return new CP2pContextClient(parent, intraComm, interComm, parentServer); 72 80 } 73 81 -
XIOS3/trunk/src/transport/context_client.hpp
r2547 r2556 28 28 { 29 29 public: 30 enum ETransport { generic, legacy, oneSided, online} ;30 enum ETransport { generic, legacy, oneSided, p2p, online} ; 31 31 32 32 template<ETransport transport=generic> … … 102 102 103 103 template<> 104 CContextClient* CContextClient::getNew<CContextClient::p2p>(CContext* parent, MPI_Comm intraComm, MPI_Comm interComm, CContext* parentServer) ; 105 106 template<> 104 107 CContextClient* CContextClient::getNew<CContextClient::legacy>(CContext* parent, MPI_Comm intraComm, MPI_Comm interComm, CContext* parentServer) ; 105 108 -
XIOS3/trunk/src/transport/context_server.cpp
r2551 r2556 22 22 #include "timeline_events.hpp" 23 23 #include "one_sided_context_server.hpp" 24 #include "p2p_context_server.hpp" 24 25 #include "legacy_context_server.hpp" 25 26 … … 67 68 string defaultProtocol = CXios::getin<string>("transport_protocol", "default") ; 68 69 if (defaultProtocol=="one_sided") return new COneSidedContextServer(parent, intraComm, interComm) ; 70 else if (defaultProtocol=="p2p") return new CP2pContextServer(parent, intraComm, interComm) ; 69 71 else if (defaultProtocol=="legacy") return new CLegacyContextServer(parent, intraComm, interComm) ; 70 72 else if (defaultProtocol=="default") return new CLegacyContextServer(parent, intraComm, interComm) ; … … 80 82 81 83 template<> 84 CContextServer* CContextServer::getNew<CContextServer::p2p>(CContext* parent,MPI_Comm intraComm,MPI_Comm interComm) 85 { 86 return new CP2pContextServer(parent, intraComm, interComm) ; 87 } 88 89 template<> 82 90 CContextServer* CContextServer::getNew<CContextServer::legacy>(CContext* parent,MPI_Comm intraComm,MPI_Comm interComm) 83 91 { -
XIOS3/trunk/src/transport/context_server.hpp
r2547 r2556 16 16 public: 17 17 18 enum ETransport { generic, legacy, oneSided} ;18 enum ETransport { generic, legacy, p2p, oneSided} ; 19 19 20 20 template<ETransport transport=generic> … … 55 55 56 56 template<> 57 CContextServer* CContextServer::getNew<CContextServer::p2p>(CContext* parent,MPI_Comm intraComm,MPI_Comm interComm) ; 58 59 template<> 57 60 CContextServer* CContextServer::getNew<CContextServer::legacy>(CContext* parent,MPI_Comm intraComm,MPI_Comm interComm) ; 58 61
Note: See TracChangeset
for help on using the changeset viewer.