Commit 2ae98a39 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added Alltoall method to NoDistrCommunicator

parent 7557162a
Loading
Loading
Loading
Loading
+9 −4
Original line number Original line Diff line number Diff line
@@ -13,10 +13,6 @@
#include <TNL/Logger.h>
#include <TNL/Logger.h>
#include <TNL/Communicators/MpiDefs.h>
#include <TNL/Communicators/MpiDefs.h>


#ifdef HAVE_MPI
#include <mpi.h>
#endif

namespace TNL {
namespace TNL {
namespace Communicators {
namespace Communicators {
namespace {
namespace {
@@ -123,6 +119,15 @@ class NoDistrCommunicator
         memcpy( ( void* ) reduced_data, ( void* ) data, count * sizeof( T ) );
         memcpy( ( void* ) reduced_data, ( void* ) data, count * sizeof( T ) );
      }
      }


      template< typename T >
      static void Alltoall( const T* sendData,
                            int sendCount,
                            T* receiveData,
                            int receiveCount,
                            CommunicationGroup group )
      {
      }

      static void CreateNewGroup(bool meToo, int myRank, CommunicationGroup &oldGroup, CommunicationGroup &newGroup)
      static void CreateNewGroup(bool meToo, int myRank, CommunicationGroup &oldGroup, CommunicationGroup &newGroup)
      {
      {
         newGroup=oldGroup;
         newGroup=oldGroup;