mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
feat(ofi)!: Remove ofi
transport
BREAKING CHANGE Due to a lack of users, we remove the experimental code. The latest implementation can be found in release v1.4.56. This does not mean it will never be picked up again, but for now there are no plans.
This commit is contained in:
committed by
Dennis Klein
parent
21735544f5
commit
2e98a4e2cb
@@ -1,5 +1,5 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2014-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* *
|
||||
* This software is distributed under the terms of the *
|
||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||
@@ -22,8 +22,7 @@ enum class Transport
|
||||
{
|
||||
DEFAULT,
|
||||
ZMQ,
|
||||
SHM,
|
||||
OFI
|
||||
SHM
|
||||
};
|
||||
|
||||
struct TransportError : std::runtime_error
|
||||
@@ -34,15 +33,13 @@ struct TransportError : std::runtime_error
|
||||
static const std::unordered_map<std::string, Transport> TransportTypes{
|
||||
{"default", Transport::DEFAULT},
|
||||
{"zeromq", Transport::ZMQ},
|
||||
{"shmem", Transport::SHM},
|
||||
{"ofi", Transport::OFI}
|
||||
{"shmem", Transport::SHM}
|
||||
};
|
||||
|
||||
static const std::unordered_map<Transport, std::string> TransportNames{
|
||||
{Transport::DEFAULT, "default"},
|
||||
{Transport::ZMQ, "zeromq"},
|
||||
{Transport::SHM, "shmem"},
|
||||
{Transport::OFI, "ofi"}
|
||||
{Transport::SHM, "shmem"}
|
||||
};
|
||||
|
||||
inline std::string TransportName(Transport transport) { return TransportNames.at(transport); }
|
||||
@@ -61,11 +58,7 @@ inline std::ostream& operator<<(std::ostream& os, const Transport& transport)
|
||||
|
||||
inline auto GetEnabledTransports() -> std::vector<Transport>
|
||||
{
|
||||
#ifdef BUILD_OFI_TRANSPORT
|
||||
return {Transport::ZMQ, Transport::SHM, Transport::OFI};
|
||||
#else
|
||||
return {Transport::ZMQ, Transport::SHM};
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace fair::mq
|
||||
|
Reference in New Issue
Block a user