diff --git a/src/synchronizer/communicator_dummy_inline_impl.hh b/src/synchronizer/communicator_dummy_inline_impl.hh
index 6b279a409..3100bd38d 100644
--- a/src/synchronizer/communicator_dummy_inline_impl.hh
+++ b/src/synchronizer/communicator_dummy_inline_impl.hh
@@ -1,148 +1,145 @@
/**
* Copyright (©) 2017-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see .
*/
/* -------------------------------------------------------------------------- */
#include "communicator.hh"
/* -------------------------------------------------------------------------- */
#include
#include
#include
/* -------------------------------------------------------------------------- */
namespace akantu {
-inline Communicator::Communicator(int & /*argc*/, char **& /*argv*/,
- const private_member & /*unused*/) {}
+// NOLINTBEGIN(misc-definitions-in-headers)
-inline Communicator::Communicator(const private_member & /*unused*/) {}
+Communicator::Communicator(int & /*argc*/, char **& /*argv*/,
+ const private_member & /*unused*/) {}
+
+Communicator::Communicator(const private_member & /*unused*/) {}
template
void Communicator::sendImpl(const T * /*unused*/, Int /*unused*/,
Int /*unused*/, Int /*unused*/,
const CommunicationMode & /*unused*/) const {}
template
void Communicator::receiveImpl(T * /*unused*/, Int /*unused*/, Int /*unused*/,
Int /*unused*/) const {}
template
CommunicationRequest
Communicator::asyncSendImpl(const T * /*unused*/, Int /*unused*/,
Int /*unused*/, Int /*unused*/,
const CommunicationMode & /*unused*/) const {
return std::shared_ptr(
new InternalCommunicationRequest(0, 0));
}
template
CommunicationRequest
Communicator::asyncReceiveImpl(T * /*unused*/, Int /*unused*/, Int /*unused*/,
Int /*unused*/) const {
return std::shared_ptr(
new InternalCommunicationRequest(0, 0));
}
template
void Communicator::probe(Int /*unused*/, Int /*unused*/,
CommunicationStatus & /*unused*/) const {}
template
bool Communicator::asyncProbe(Int /*unused*/, Int /*unused*/,
CommunicationStatus & /*unused*/) const {
return true;
}
-inline bool Communicator::test(CommunicationRequest & /*unused*/) {
- return true;
-}
-inline bool
-Communicator::testAll(std::vector & /*unused*/) {
+bool Communicator::test(CommunicationRequest & /*unused*/) { return true; }
+bool Communicator::testAll(std::vector & /*unused*/) {
return true;
}
-inline void Communicator::wait(CommunicationRequest & /*unused*/) {}
-inline void
-Communicator::waitAll(std::vector & /*unused*/) {}
-inline Int
-Communicator::waitAny(std::vector & /*unused*/) {
+void Communicator::wait(CommunicationRequest & /*unused*/) {}
+void Communicator::waitAll(std::vector & /*unused*/) {}
+Int Communicator::waitAny(std::vector & /*unused*/) {
return -1;
}
-inline void Communicator::barrier() const {}
-inline CommunicationRequest Communicator::asyncBarrier() const {
+void Communicator::barrier() const {}
+CommunicationRequest Communicator::asyncBarrier() const {
return std::shared_ptr(
new InternalCommunicationRequest(0, 0));
}
template
void Communicator::reduceImpl(T * /*unused*/, int /*unused*/,
SynchronizerOperation /*unused*/,
int /*unused*/) const {}
template
void Communicator::allReduceImpl(T * /*unused*/, int /*unused*/,
SynchronizerOperation /*unused*/) const {}
template
void Communicator::scanImpl(T * values, T * result, int n,
SynchronizerOperation /*unused*/) const {
if (values == result) {
return;
}
std::copy_n(values, n, result);
}
template
void Communicator::exclusiveScanImpl(T * /*values*/, T * result, int n,
SynchronizerOperation /*unused*/) const {
std::fill_n(result, n, T());
}
template
-inline void Communicator::allGatherImpl(T * /*unused*/, int /*unused*/) const {}
+void Communicator::allGatherImpl(T * /*unused*/, int /*unused*/) const {}
template
-inline void Communicator::allGatherVImpl(T * /*unused*/,
- const int * /*unused*/) const {}
+void Communicator::allGatherVImpl(T * /*unused*/,
+ const int * /*unused*/) const {}
template
-inline void Communicator::gatherImpl(T * /*unused*/, int /*unused*/,
- int /*unused*/) const {}
+void Communicator::gatherImpl(T * /*unused*/, int /*unused*/,
+ int /*unused*/) const {}
template
void Communicator::gatherImpl(T * values, int nb_values, T * gathered,
int /*unused*/) const {
static_assert(std::is_trivially_copyable{},
"Cannot send this type of data");
std::memcpy(gathered, values, nb_values);
}
template
-inline void Communicator::gatherVImpl(T * /*unused*/, int * /*unused*/,
- int /*unused*/) const {}
+void Communicator::gatherVImpl(T * /*unused*/, int * /*unused*/,
+ int /*unused*/) const {}
template
-inline void Communicator::broadcastImpl(T * /*unused*/, int /*unused*/,
- int /*unused*/) const {}
+void Communicator::broadcastImpl(T * /*unused*/, int /*unused*/,
+ int /*unused*/) const {}
-inline int Communicator::getMaxTag() const {
- return std::numeric_limits::max();
-}
-inline int Communicator::getMinTag() const { return 0; }
+int Communicator::getMaxTag() const { return std::numeric_limits::max(); }
+int Communicator::getMinTag() const { return 0; }
+
+Int Communicator::getNbProc() const { return 1; }
+Int Communicator::whoAmI() const { return 0; }
-inline Int Communicator::getNbProc() const { return 1; }
-inline Int Communicator::whoAmI() const { return 0; }
+// NOLINTEND(misc-definitions-in-headers)
} // namespace akantu