CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::CoDiMpiTypes< T_Type, T_Tool > Struct Template Reference

MPI datatype implementation for CoDipack types in the type wrapper of MeDiPack. More...

#include <codiMpiTypes.hpp>

Public Types

using MPIType = medi::MpiTypeDefault<Tool>
 MeDiPack default implementation.
 
using Tool = T_Tool
 See CoDiMpiTypes.
 
using Type = T_Type
 See CoDiMpiTypes.
 

Public Member Functions

 CoDiMpiTypes ()
 Constructor.
 
 ~CoDiMpiTypes ()
 Destructor.
 

Public Attributes

medi::AMPI_Datatype MPI_INT_TYPE
 MPI_Datatype for the specified CoDiPack type and an int.
 
MPITypeMPI_TYPE
 MPI_Datatype for the specified CoDiPack type.
 

Detailed Description

template<typename T_Type, typename T_Tool = typename std::conditional<codi::TapeTraits::IsForwardTape<typename T_Type::Tape>::value, CoDiPackForwardTool<T_Type>, CoDiPackReverseTool<T_Type> >::type>
struct codi::CoDiMpiTypes< T_Type, T_Tool >

MPI datatype implementation for CoDipack types in the type wrapper of MeDiPack.

See Example 13 - MPI communication for an example.

Use the member MPI_TYPE as the type for the communication in MeDiPack wrapped MPI routines or MPI_INT_TYPE for pairs of CoDiPack and an int.

Template Parameters
T_TypeCoDiPack active type. Must implement LhsExpressionInterface.
T_ToolActual tool implementation of the MeDiPack interface.

The documentation for this struct was generated from the following file: