Skip to content
Snippets Groups Projects
Commit 2a9e49bf authored by Samuel Kemmler's avatar Samuel Kemmler Committed by Markus Holzer
Browse files

Check for cuda aware mpi

parent 927ebe66
No related merge requests found
...@@ -134,6 +134,12 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl ...@@ -134,6 +134,12 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl
: blockForest_(bf), sendFromGPU_(sendDirectlyFromGPU), baseTag_(tag), parallelSectionManager_(-1), : blockForest_(bf), sendFromGPU_(sendDirectlyFromGPU), baseTag_(tag), parallelSectionManager_(-1),
requiredBlockSelectors_(Set< SUID >::emptySet()), incompatibleBlockSelectors_(Set< SUID >::emptySet()) requiredBlockSelectors_(Set< SUID >::emptySet()), incompatibleBlockSelectors_(Set< SUID >::emptySet())
{ {
WALBERLA_MPI_SECTION()
{
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif
}
init(); init();
} }
...@@ -146,6 +152,12 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl ...@@ -146,6 +152,12 @@ NonUniformGPUScheme< Stencil >::NonUniformGPUScheme(const weak_ptr< StructuredBl
incompatibleBlockSelectors_(incompatibleBlockSelectors), sendFromGPU_(sendDirectlyFromGPU), baseTag_(tag), incompatibleBlockSelectors_(incompatibleBlockSelectors), sendFromGPU_(sendDirectlyFromGPU), baseTag_(tag),
parallelSectionManager_(-1) parallelSectionManager_(-1)
{ {
WALBERLA_MPI_SECTION()
{
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif
}
init(); init();
} }
......
...@@ -42,7 +42,14 @@ namespace communication { ...@@ -42,7 +42,14 @@ namespace communication {
parallelSectionManager_( -1 ), parallelSectionManager_( -1 ),
requiredBlockSelectors_( Set<SUID>::emptySet() ), requiredBlockSelectors_( Set<SUID>::emptySet() ),
incompatibleBlockSelectors_( Set<SUID>::emptySet() ) incompatibleBlockSelectors_( Set<SUID>::emptySet() )
{} {
WALBERLA_MPI_SECTION()
{
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif
}
}
template<typename Stencil> template<typename Stencil>
UniformGPUScheme<Stencil>::UniformGPUScheme( weak_ptr <StructuredBlockForest> bf, UniformGPUScheme<Stencil>::UniformGPUScheme( weak_ptr <StructuredBlockForest> bf,
...@@ -61,7 +68,14 @@ namespace communication { ...@@ -61,7 +68,14 @@ namespace communication {
parallelSectionManager_( -1 ), parallelSectionManager_( -1 ),
requiredBlockSelectors_( requiredBlockSelectors ), requiredBlockSelectors_( requiredBlockSelectors ),
incompatibleBlockSelectors_( incompatibleBlockSelectors ) incompatibleBlockSelectors_( incompatibleBlockSelectors )
{} {
WALBERLA_MPI_SECTION()
{
#if !(defined(MPIX_CUDA_AWARE_SUPPORT) && MPIX_CUDA_AWARE_SUPPORT)
WALBERLA_CHECK(!sendDirectlyFromGPU)
#endif
}
}
template<typename Stencil> template<typename Stencil>
......
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