-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakePresets.json
More file actions
126 lines (126 loc) · 3.51 KB
/
CMakePresets.json
File metadata and controls
126 lines (126 loc) · 3.51 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
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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"SEMBA_DGTD_ENABLE_MFEM_AS_SUBDIRECTORY": "ON",
"MFEM_ENABLE_TESTING": false,
"MFEM_ENABLE_EXAMPLES": false
}
},
{
"name": "gnu-debug-base",
"hidden": true,
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"SEMBA_DGTD_ENABLE_TIMER_INFORMATION": "ON",
"SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
"SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON"
}
},
{
"name": "gnu-release-base",
"hidden": true,
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"SEMBA_DGTD_ENABLE_TIMER_INFORMATION": "ON",
"SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
"SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON",
"MFEM_USE_OPENMP": true,
"SEMBA_DGTD_ENABLE_OPENMP": true
}
},
{
"name": "gnu-debug-mpi",
"displayName": "GNU debug mpi",
"inherits": "gnu-debug-base",
"cacheVariables": {
"SEMBA_DGTD_ENABLE_MPI": true,
"METIS_DIR": "$env{METIS_DIR}",
"HYPRE_DIR": "$env{HYPRE_DIR}",
"MFEM_USE_MPI": true,
"MFEM_USE_OPENMP": true,
"MFEM_USE_METIS": true,
"MFEM_USE_METIS_5": true
}
},
{
"name": "gnu-release-mpi",
"displayName": "GNU release mpi",
"inherits": "gnu-release-base",
"cacheVariables": {
"SEMBA_DGTD_ENABLE_MPI": true,
"METIS_DIR": "$env{METIS_DIR}",
"HYPRE_DIR": "$env{HYPRE_DIR}",
"MFEM_USE_MPI": true,
"MFEM_USE_OPENMP": true,
"MFEM_USE_METIS": true,
"MFEM_USE_METIS_5": true
}
},
{
"name": "gnu-debug-cuda",
"displayName": "GNU debug cuda",
"inherits": "gnu-debug-mpi",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-12",
"CMAKE_CXX_COMPILER": "g++-12",
"CMAKE_CUDA_HOST_COMPILER": "g++-12",
"SEMBA_DGTD_ENABLE_CUDA": "ON",
"HYPRE_DIR": "$env{HYPRE_CUDA_DIR}",
"MFEM_USE_CUDA": true,
"CUDA_ARCH": "sm_120",
"CMAKE_CUDA_ARCHITECTURES": "120"
}
},
{
"name": "gnu-release-cuda",
"displayName": "GNU release cuda",
"inherits": "gnu-release-mpi",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-12",
"CMAKE_CXX_COMPILER": "g++-12",
"CMAKE_CUDA_HOST_COMPILER": "g++-12",
"SEMBA_DGTD_ENABLE_CUDA": "ON",
"HYPRE_DIR": "$env{HYPRE_CUDA_DIR}",
"MFEM_USE_CUDA": true,
"CUDA_ARCH": "sm_120",
"CMAKE_CUDA_ARCHITECTURES": "120"
}
}
],
"buildPresets": [
{
"name": "build-gnu-debug-mpi",
"displayName": "Build GNU debug mpi",
"configurePreset": "gnu-debug-mpi"
},
{
"name": "build-gnu-release-mpi",
"displayName": "Build GNU release mpi",
"configurePreset": "gnu-release-mpi"
},
{
"name": "build-gnu-debug-cuda",
"displayName": "Build GNU debug cuda",
"configurePreset": "gnu-debug-cuda"
},
{
"name": "build-gnu-release-cuda",
"displayName": "Build GNU release cuda",
"configurePreset": "gnu-release-cuda"
}
]
}