forked from lucas56098/ProteusGPU
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.sh
More file actions
88 lines (66 loc) · 4.67 KB
/
Copy pathConfig.sh
File metadata and controls
88 lines (66 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Configuration file for compilation options
# Makefile converts these to -D flags
################################################################
# setup
################################################################
#dim_2D # run in 2D mode
dim_3D # run in 3D mode
#CUDA # run in GPU mode
CPU_DEBUG # run in CPU mode
#ENABLE_PROFILING # enable the hierarchical timers and profile.hdf5 (off = compiled away)
#CUDA_PROFILING # enable profiling of GPU kernels (needs ENABLE_PROFILING)
################################################################
# hydro
################################################################
MOVING_MESH # enable moving mesh hydrodynamics
#_CELL_SHAPING_SPEED_=0.7 # mesh regularization speed fraction (default 0.7)
#_CELL_SHAPING_FACTOR_=0.2 # regularization threshold in cell radii (default 0.2)
#_GAMMA_EOS_=1.6666666666666667 # adiabatic index (default 5/3)
################################################################
# parallelization
################################################################
USE_OPENMP # enable multithreading on CPU (uses all available cores)
#USE_MPI # enable MPI / multi-node parallelization (1 GPU per rank when CUDA is enabled)
#GPU_AWARE_MPI # pass device pointers directly to MPI (requires CUDA + USE_MPI + CUDA-aware MPI lib)
# GPU kernel block sizes
#_VORO_BLOCK_SIZE_=64 # voronoi cell computation (register-heavy, default 64)
#_KNN_BLOCK_SIZE_=256 # KNN grid sort kernels (default 256)
#_GRAD_BLOCK_SIZE_=256 # gradient computation kernel (default 256)
#_HYDRO_BLOCK_SIZE_=256 # hydro flux / CFL / copy / volume kernels (default 256)
#_MESH_BLOCK_SIZE_=256 # periodic mesh / ghost / scaling kernels (default 256)
#_MPI_PACK_BLOCK_SIZE_=256 # kernels preparing the MPI comm
################################################################
# compile time memory constraints
################################################################
#_K_=190 # KNN candidates, slow tier (default 2D/3D ~35/190)
#_MAX_P_=50 # max clipping planes per cell, slow (default 2D/3D ~30/50)
#_MAX_T_=96 # max triangles per cell, slow (default 2D/3D ~60/96)
# fast-tier limits: cells that overflow these fall back to slow tier (above)
#_FAST_K_=35 # KNN candidates, fast tier (default 2D/3D ~15/35)
#_FAST_MAX_P_=30 # max clipping planes per cell, fast (default 2D/3D ~20/30)
#_FAST_MAX_T_=60 # max triangles per cell, fast (default 2D/3D ~20/60)
#_FACE_CAPACITY_MULT_=17 # max face array entries allocated per cell (default 2D/3D ~8/17)
# wide CPU-fallback tier: 32-bit indices, used when a cell overflows the 8-bit limits above
#_BIG_MAX_P_=1024 # max clipping planes per cell, wide tier (default 1024)
#_BIG_MAX_T_=2048 # max triangles per cell, wide tier (default 2048)
################################################################
# mesh regularization
################################################################
#VOL_REGULARIZE=1 # size-equalizing drift: threshold in Ri_ref/Ri before it engages
#_VOL_SHAPING_SPEED_=0.7 # drift speed as a fraction of max(c_s, |v_gas|) (default 0.7)
################################################################
# diagnostics
################################################################
#OUTPUT_MESH # dump full Voronoi geometry (CSR faces + volumes) in snapshots
################################################################
# astrophysics source terms
################################################################
#ASTRO_PHYSICS # master switch: required by every sub-flag below
#NFW # static NFW halo potential
#HERNQUIST # static Hernquist (BCG stellar) potential
#SMBH # softened central point mass
#COOLING # tabulated radiative cooling (Townsend 2009)
#SF_FEEDBACK # SNIa injection + particle-free SF thermostat
#AGN_THERMAL # AGN thermal energy deposition
#AGN_KINETIC # AGN bipolar kinetic jet
#LIMITERS # central-region hard clamps on T and |v|