CMakeLists.txt 2.48 KB
Newer Older
1
2

waLBerla_link_files_to_builddir( "*.prm" )
Markus Holzer's avatar
Markus Holzer committed
3
waLBerla_link_files_to_builddir( "*.py" )
4
waLBerla_link_files_to_builddir( "simulation_setup" )
5

6
7
8
9
10
11
12
13
14
15

foreach (config srt trt mrt smagorinsky entropic smagorinsky_noopt entropic_kbc_n4
      entropic_kbc_n4_noopt mrt_noopt mrt_full mrt_full_noopt
      cumulant cumulant_d3q27
      srt_d3q27 mrt_d3q27 mrt_d3q27_noopt smagorinsky_d3q27 smagorinsky_d3q27_noopt mrt_full_d3q27 mrt_full_d3q27_noopt)

    waLBerla_generate_target_from_python(NAME UniformGridGPUGenerated_${config}
          FILE UniformGridGPU.py
          CODEGEN_CFG ${config}
          OUT_FILES UniformGridGPU_LatticeModel.cpp UniformGridGPU_LatticeModel.h
16
          UniformGridGPU_LbKernel.cu UniformGridGPU_LbKernel.h
17
18
19
20
21
22
23
24
25
26
27
28
          UniformGridGPU_NoSlip.cu UniformGridGPU_NoSlip.h
          UniformGridGPU_UBB.cu UniformGridGPU_UBB.h
          UniformGridGPU_PackInfo.cu UniformGridGPU_PackInfo.h
          UniformGridGPU_MacroSetter.cpp UniformGridGPU_MacroSetter.h
          UniformGridGPU_MacroGetter.cpp UniformGridGPU_MacroGetter.h
          UniformGridGPU_Defines.h
          )


    waLBerla_add_executable(NAME UniformGridBenchmarkGPU_${config}
          FILES UniformGridGPU.cpp
          DEPENDS blockforest boundary core cuda domain_decomposition field geometry timeloop vtk gui UniformGridGPUGenerated_${config})
29
    set_target_properties( UniformGridBenchmarkGPU_${config} PROPERTIES CXX_VISIBILITY_PRESET hidden)
30
31
32
33
34
35
36
37
38
endforeach ()


foreach (config srt trt mrt smagorinsky entropic)

    waLBerla_generate_target_from_python(NAME UniformGridGPUGenerated_AA_${config}
          FILE UniformGridGPU_AA.py
          CODEGEN_CFG ${config}
          OUT_FILES UniformGridGPU_AA_PackInfoPull.cu UniformGridGPU_AA_PackInfoPull.h
39
40
          UniformGridGPU_AA_LbKernelOdd.cu UniformGridGPU_AA_LbKernelOdd.h
          UniformGridGPU_AA_LbKernelEven.cu UniformGridGPU_AA_LbKernelEven.h
41
42
43
44
45
46
47
48
49
50
          UniformGridGPU_AA_PackInfoPush.cu UniformGridGPU_AA_PackInfoPush.h
          UniformGridGPU_AA_MacroSetter.cpp UniformGridGPU_AA_MacroSetter.h
          UniformGridGPU_AA_MacroGetter.cpp UniformGridGPU_AA_MacroGetter.h
          UniformGridGPU_AA_Defines.h
          )


    waLBerla_add_executable(NAME UniformGridBenchmarkGPU_AA_${config}
          FILES UniformGridGPU_AA.cpp
          DEPENDS blockforest boundary core cuda domain_decomposition field geometry timeloop vtk gui UniformGridGPUGenerated_AA_${config})
51
    set_target_properties( UniformGridBenchmarkGPU_AA_${config} PROPERTIES CXX_VISIBILITY_PRESET hidden)
52
endforeach ()