ls1-MarDyn
ls1-MarDyn molecular dynamics code
CollectiveCommunicationInterface.h
1/*
2 * CollectiveCommunicationInterface.hpp
3 *
4 * Created on: May 2, 2017
5 * Author: seckler
6 */
7
8#pragma once
9
10#include "CollectiveCommBaseInterface.h"
11
16public:
19
24 virtual void init(MPI_Comm communicator, int numValues, int key = 0) = 0;
25
29 virtual void allreduceSumAllowPrevious() = 0;
30
33 virtual MPI_Comm getTopology() = 0;
34
35};
36
37
This class is provides an interface for the base class of the collective communication.
Definition: CollectiveCommBaseInterface.h:24
This class provides an interface for the collective communication classes.
Definition: CollectiveCommunicationInterface.h:15
virtual void allreduceSumAllowPrevious()=0
~CollectiveCommunicationInterface() override=default
virtual destructor
virtual MPI_Comm getTopology()=0
virtual void init(MPI_Comm communicator, int numValues, int key=0)=0
allocate memory for the values to be sent, initialize counters for specific