CMakeLists.txt 2.24 KB
Newer Older
1
2

waLBerla_link_files_to_builddir( "*.prm" )
3
#waLBerla_link_files_to_builddir( "simulation_setup" )
4

5
6
7
8
9
10
11
12
13
14

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
15
          UniformGridGPU_LbKernel.cu UniformGridGPU_LbKernel.h
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
          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})
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
37
38
          UniformGridGPU_AA_LbKernelOdd.cu UniformGridGPU_AA_LbKernelOdd.h
          UniformGridGPU_AA_LbKernelEven.cu UniformGridGPU_AA_LbKernelEven.h
39
40
41
42
43
44
45
46
47
48
49
          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})
endforeach ()