Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
waLBerla
waLBerla
Commits
2b6192a0
Commit
2b6192a0
authored
Aug 12, 2020
by
Markus Holzer
Committed by
Christoph Schwarzmeier
Aug 12, 2020
Browse files
Activated Poission GPU test case
parent
0b031fcc
Changes
5
Hide whitespace changes
Inline
Side-by-side
apps/benchmarks/CMakeLists.txt
View file @
2b6192a0
...
...
@@ -14,11 +14,10 @@ add_subdirectory( PoiseuilleChannel )
add_subdirectory
(
ProbeVsExtraMessage
)
add_subdirectory
(
SchaeferTurek
)
add_subdirectory
(
UniformGrid
)
if
(
WALBERLA_BUILD_WITH_CODEGEN
AND NOT WALBERLA_BUILD_WITH_CUDA
)
if
(
WALBERLA_BUILD_WITH_CODEGEN
)
add_subdirectory
(
UniformGridGenerated
)
add_subdirectory
(
PhaseFieldAllenCahn
)
endif
()
if
(
WALBERLA_BUILD_WITH_CUDA
)
if
(
WALBERLA_BUILD_WITH_CODEGEN AND
WALBERLA_BUILD_WITH_CUDA
)
add_subdirectory
(
UniformGridGPU
)
add_subdirectory
(
PhaseFieldAllenCahn
)
endif
()
tests/cuda/CMakeLists.txt
View file @
2b6192a0
...
...
@@ -29,6 +29,10 @@ waLBerla_compile_test( FILES codegen/CodegenJacobiGPU.cpp
DEPENDS blockforest timeloop gui CodegenJacobiGPUGeneratedCudaJacobiKernel
)
waLBerla_execute_test
(
NAME CodegenJacobiGPU
)
waLBerla_generate_target_from_python
(
NAME CodegenPoissonGPUGeneratedKernel FILE codegen/CudaPoisson.py
OUT_FILES PoissonGPU.cu PoissonGPU.h
)
waLBerla_compile_test
(
FILES codegen/CodegenPoissonGPU.cpp DEPENDS gui cuda timeloop CodegenPoissonGPUGeneratedKernel
)
waLBerla_execute_test
(
NAME CodegenPoissonGPU
)
# The following tests work only for CUDA enabled MPI
waLBerla_compile_test
(
FILES communication/CommTest
)
...
...
tests/cuda/codegen/CodegenPoissonGPU.cpp
View file @
2b6192a0
...
...
@@ -20,7 +20,6 @@
#include
"PoissonGPU.h"
#include
"cuda/HostFieldAllocator.h"
#include
"blockforest/Initialization.h"
#include
"blockforest/communication/UniformDirectScheme.h"
#include
"blockforest/communication/UniformBufferedScheme.h"
...
...
@@ -29,10 +28,8 @@
#include
"core/debug/TestSubsystem.h"
#include
"core/math/Constants.h"
#include
"cuda/HostFieldAllocator.h"
#include
"cuda/FieldCopy.h"
#include
"cuda/GPUField.h"
#include
"cuda/Kernel.h"
#include
"cuda/AddGPUFieldToStorage.h"
#include
"cuda/communication/GPUPackInfo.h"
#include
"cuda/FieldIndexing.h"
...
...
@@ -43,8 +40,6 @@
#include
"geometry/initializer/ScalarFieldFromGrayScaleImage.h"
#include
"gui/Gui.h"
#include
"stencil/D2Q9.h"
#include
"timeloop/SweepTimeloop.h"
...
...
tests/field/CMakeLists.txt
View file @
2b6192a0
...
...
@@ -68,10 +68,10 @@ waLBerla_generate_target_from_python(NAME CodegenJacobiCPUGeneratedJacobiKernel
waLBerla_compile_test
(
FILES codegen/CodegenJacobiCPU.cpp DEPENDS gui timeloop CodegenJacobiCPUGeneratedJacobiKernel
)
waLBerla_execute_test
(
NAME CodegenJacobiCPU
)
waLBerla_generate_target_from_python
(
NAME CodegenPoissonGeneratedKernel FILE codegen/Poisson.py
waLBerla_generate_target_from_python
(
NAME CodegenPoisson
CPU
GeneratedKernel FILE codegen/Poisson.py
OUT_FILES Poisson.cpp Poisson.h
)
waLBerla_compile_test
(
FILES codegen/CodegenPoisson.cpp DEPENDS gui timeloop CodegenPoissonGeneratedKernel
)
waLBerla_execute_test
(
NAME CodegenPoisson
)
waLBerla_compile_test
(
FILES codegen/CodegenPoisson
CPU
.cpp DEPENDS gui timeloop CodegenPoisson
CPU
GeneratedKernel
)
waLBerla_execute_test
(
NAME CodegenPoisson
CPU
)
waLBerla_generate_target_from_python
(
NAME CodeGenMultipleFieldSwaps FILE codegen/MultipleFieldSwaps.py
OUT_FILES MultipleFieldSwaps.cpp MultipleFieldSwaps.h
)
...
...
tests/field/codegen/CodegenPoisson.cpp
→
tests/field/codegen/CodegenPoisson
CPU
.cpp
View file @
2b6192a0
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment