forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
155 lines (155 loc) · 5.2 KB
/
CMakePresets.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"version": 3,
"cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0},
"configurePresets": [
{
"name": "default",
"displayName": "Automatic options",
"description": "Dependencies are enabled based on environment probing",
"binaryDir": "${sourceDir}/build-${presetName}",
"generator": "Ninja",
"cacheVariables": {
"Celeritas_GIT_DESCRIBE": "",
"CELERITAS_BUILD_TESTS":{"type": "BOOL", "value": "ON"},
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install-${presetName}"
}
},
{
"name": "full",
"displayName": "Full",
"description": "All external dependencies are expected",
"binaryDir": "${sourceDir}/build",
"inherits": "default",
"cacheVariables": {
"CELERITAS_BUILD_DOCS": {"type": "BOOL", "value": "ON"},
"CELERITAS_BUILD_TESTS": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_Geant4": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_HepMC3": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_MPI": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_PNG": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_ROOT": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "ON"}
}
},
{
"name": "minimal",
"displayName": "Minimal",
"description": "Smallest capabilities for useful development",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CELERITAS_BUILD_DOCS": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_CUDA": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_Geant4": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_HepMC3": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_MPI": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_OpenMP": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_PNG": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_ROOT": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"},
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install-${presetName}"
}
},
{
"name": ".cuda-volta",
"hidden": true,
"description": "Options to enable CUDA 11 on Volta architecture",
"cacheVariables": {
"CELERITAS_USE_CUDA": {"type": "BOOL", "value": "ON"},
"CMAKE_CUDA_ARCHITECTURES": {"type": "STRING", "value": "70"}
}
},
{
"name": ".hip-mi100",
"hidden": true,
"description": "Options to enable HIP on AMD MI100",
"cacheVariables": {
"CELERITAS_USE_CUDA": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_HIP": {"type": "BOOL", "value": "ON"},
"CMAKE_HIP_ARCHITECTURES": {"type": "STRING", "value": "gfx908"},
"CMAKE_HIP_FLAGS": "-munsafe-fp-atomics -Wno-#warnings",
"CMAKE_HIP_FLAGS_DEBUG": "-g -ggdb -O"
}
},
{
"name": ".ndebug",
"hidden": true,
"description": "Build with optimizations and without debug assertions",
"cacheVariables": {
"CELERITAS_DEBUG": {"type": "BOOL", "value": "OFF"},
"CMAKE_BUILD_TYPE": {"type": "STRING", "value": "Release"},
"CMAKE_CUDA_FLAGS_RELEASE": "-O3 -DNDEBUG",
"CMAKE_HIP_FLAGS_RELEASE": "-O3 -DNDEBUG"
}
},
{
"name": ".reldeb",
"hidden": true,
"description": "Enable debug with basic optimizations",
"cacheVariables": {
"BUILD_SHARED_LIBS":{"type": "BOOL", "value": "ON"},
"CELERITAS_DEBUG": {"type": "BOOL", "value": "ON"},
"CMAKE_BUILD_TYPE": {"type": "STRING", "value": "RelWithDebInfo"}
}
},
{
"name": ".debug",
"hidden": true,
"description": "Enable debug mode",
"cacheVariables": {
"BUILD_SHARED_LIBS":{"type": "BOOL", "value": "ON"},
"CELERITAS_DEBUG": {"type": "BOOL", "value": "ON"},
"CMAKE_BUILD_TYPE": {"type": "STRING", "value": "Debug"}
}
},
{
"name": ".spack-base",
"description": "Setup for using spack environment",
"hidden": true,
"environment": {
"PATH": "$env{SPACK_ROOT}/var/spack/environments/celeritas/.spack-env/view/bin:$penv{PATH}",
"CMAKE_PREFIX_PATH": "$env{SPACK_ROOT}/var/spack/environments/celeritas/.spack-env/view"
},
"condition": {
"lhs": "$env{SPACK_ROOT}",
"type": "notEquals",
"rhs": ""
}
}
],
"buildPresets": [
{
"name": "default",
"jobs": 0,
"configurePreset": "default"
},
{
"name": "full",
"inherits": "default",
"configurePreset": "full"
},
{
"name": "minimal",
"inherits": "default",
"configurePreset": "minimal"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": false, "jobs": 8}
},
{
"name": "full",
"inherits": "default",
"configurePreset": "full"
},
{
"name": "minimal",
"inherits": "default",
"configurePreset": "minimal"
}
]
}