CMakeLists.txt 2.34 KB
Newer Older
Martin Bauer's avatar
Martin Bauer committed
1
2
3
4
5
6
###################################################################################################
#
# Tests for cuda
#
###################################################################################################

7
8
if( WALBERLA_BUILD_WITH_CUDA )

9
10
11
waLBerla_compile_test( FILES communication/GPUPackInfoTest.cpp DEPENDS blockforest )
waLBerla_execute_test( NAME  GPUPackInfoTest )

12
13
14
waLBerla_compile_test( FILES communication/GPUPackInfoCommunicationTest.cpp DEPENDS domain_decomposition blockforest stencil )
waLBerla_execute_test( NAME  GPUPackInfoCommunicationTest )

Martin Bauer's avatar
Martin Bauer committed
15
16
17
18
19
20
waLBerla_compile_test( FILES FieldTransferTest )
waLBerla_execute_test( NAME  FieldTransferTest )

waLBerla_compile_test( FILES SimpleKernelTest.cpp Kernels.cu DEPENDS blockforest timeloop gui )
waLBerla_execute_test( NAME  SimpleKernelTest )

21
22
23
waLBerla_compile_test( FILES FieldIndexing3DTest.cpp FieldIndexing3DTest.cu )
waLBerla_execute_test( NAME  FieldIndexing3DTest )

Martin Bauer's avatar
Martin Bauer committed
24

25
26
27
waLBerla_generate_target_from_python(NAME CodegenJacobiGPUGeneratedCudaJacobiKernel FILE codegen/CudaJacobiKernel.py
      OUT_FILES CudaJacobiKernel2D.cu CudaJacobiKernel2D.h
      CudaJacobiKernel3D.cu CudaJacobiKernel3D.h)
28
waLBerla_compile_test( FILES codegen/CodegenJacobiGPU.cpp
29
                       DEPENDS blockforest timeloop gui CodegenJacobiGPUGeneratedCudaJacobiKernel )
30
waLBerla_execute_test( NAME CodegenJacobiGPU )
31

32
33
34
35
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 )
36
37
38
39
40
41
42

# The following tests work only for CUDA enabled MPI
waLBerla_compile_test( FILES communication/CommTest )
#waLBerla_execute_test( NAME  CommTest PROCESSES 2)

waLBerla_compile_test( FILES CudaMPI DEPENDS blockforest timeloop gui )
#waLBerla_execute_test( NAME  CudaMPI )
43

44
45
waLBerla_compile_test( FILES AlignmentTest.cpp DEPENDS blockforest timeloop )

46
waLBerla_generate_target_from_python(NAME MicroBenchmarkGpuLbmGenerated FILE codegen/MicroBenchmarkGpuLbm.py
47
      OUT_FILES MicroBenchmarkStreamKernel.cu MicroBenchmarkCopyKernel.cu MicroBenchmarkStreamKernel.h MicroBenchmarkCopyKernel.h)
48
49
50
waLBerla_compile_test( FILES codegen/MicroBenchmarkGpuLbm.cpp DEPENDS MicroBenchmarkGpuLbmGenerated)

endif()