mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 03:18:58 +00:00
934f085e09
Support both mpi and nompi versions simultaneously.
25 lines
614 B
C++
25 lines
614 B
C++
#undef VTKM_DIY_INCLUDE
|
|
VTKM_THIRDPARTY_POST_INCLUDE
|
|
// clang-format on
|
|
|
|
#if defined(VTKM_CLANG) || defined(VTKM_GCC)
|
|
#pragma GCC visibility pop
|
|
#endif
|
|
|
|
// When using an external DIY
|
|
// We need to alias the diy namespace to
|
|
// vtkmdiy so that VTK-m uses it properly
|
|
#if VTKM_USE_EXTERNAL_DIY
|
|
namespace vtkmdiy = ::diy;
|
|
|
|
#else
|
|
// The aliasing approach fails for when we
|
|
// want to use an internal version since
|
|
// the diy namespace already points to the
|
|
// external version. Instead we use macro
|
|
// replacement to make sure all diy classes
|
|
// are placed in vtkmdiy placed
|
|
#undef diy // mangle namespace diy
|
|
|
|
#endif
|