Skip to content
Snippets Groups Projects
Commit 041cbc59 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'fix-MPIX_CUDA_AWARE_SUPPORT' into 'master'

Add mpi-ext.h for MPIX_CUDA_AWARE_SUPPORT

See merge request walberla/walberla!622
parents 448ae8b4 c2a1f6d2
Branches
No related merge requests found
...@@ -61,8 +61,6 @@ IncludeCategories: ...@@ -61,8 +61,6 @@ IncludeCategories:
Priority: 3 Priority: 3
- Regex: '^"core/' - Regex: '^"core/'
Priority: 4 Priority: 4
- Regex: '^"cuda/'
Priority: 5
- Regex: '^"domain_decomposition/' - Regex: '^"domain_decomposition/'
Priority: 6 Priority: 6
- Regex: '^"executiontree/' - Regex: '^"executiontree/'
...@@ -75,6 +73,8 @@ IncludeCategories: ...@@ -75,6 +73,8 @@ IncludeCategories:
Priority: 10 Priority: 10
- Regex: '^"geometry/' - Regex: '^"geometry/'
Priority: 11 Priority: 11
- Regex: '^"gpu/'
Priority: 12
- Regex: '^"gui/' - Regex: '^"gui/'
Priority: 12 Priority: 12
- Regex: '^"lbm/' - Regex: '^"lbm/'
......
...@@ -66,6 +66,9 @@ namespace mpistubs { ...@@ -66,6 +66,9 @@ namespace mpistubs {
# pragma GCC diagnostic ignored "-Wsign-conversion" # pragma GCC diagnostic ignored "-Wsign-conversion"
#endif #endif
#include <mpi.h> #include <mpi.h>
#if defined(OPEN_MPI) && OPEN_MPI
#include <mpi-ext.h>
#endif
#if ( defined WALBERLA_CXX_COMPILER_IS_GNU ) || ( defined WALBERLA_CXX_COMPILER_IS_CLANG ) #if ( defined WALBERLA_CXX_COMPILER_IS_GNU ) || ( defined WALBERLA_CXX_COMPILER_IS_CLANG )
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#endif #endif
......
...@@ -30,13 +30,13 @@ ...@@ -30,13 +30,13 @@
#include "domain_decomposition/IBlock.h" #include "domain_decomposition/IBlock.h"
#include "stencil/Directions.h"
#include "gpu/ErrorChecking.h" #include "gpu/ErrorChecking.h"
#include "gpu/GPUWrapper.h" #include "gpu/GPUWrapper.h"
#include "gpu/communication/CustomMemoryBuffer.h" #include "gpu/communication/CustomMemoryBuffer.h"
#include "gpu/communication/GeneratedNonUniformGPUPackInfo.h" #include "gpu/communication/GeneratedNonUniformGPUPackInfo.h"
#include "stencil/Directions.h"
#include <memory> #include <memory>
#include <thread> #include <thread>
...@@ -138,7 +138,8 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl ...@@ -138,7 +138,8 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl
{ {
WALBERLA_MPI_SECTION() WALBERLA_MPI_SECTION()
{ {
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT) // Open MPI supports compile time CUDA-aware support check
#if (defined(OPEN_MPI) && OPEN_MPI) && !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU) WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif #endif
} }
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
// //
//====================================================================================================================== //======================================================================================================================
#include "core/mpi/MPIWrapper.h"
#include "gpu/ParallelStreams.h" #include "gpu/ParallelStreams.h"
namespace walberla { namespace walberla {
...@@ -45,7 +47,8 @@ namespace communication { ...@@ -45,7 +47,8 @@ namespace communication {
{ {
WALBERLA_MPI_SECTION() WALBERLA_MPI_SECTION()
{ {
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT) // Open MPI supports compile time CUDA-aware support check
#if (defined(OPEN_MPI) && OPEN_MPI) && !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU) WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif #endif
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment