-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
153 lines (138 loc) · 4 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "common-settings",
"displayName": "Commons configuration settings ",
"hidden" : true,
"generator": "Ninja",
"cacheVariables": {
"Kokkos_ENABLE_SERIAL": "ON",
"Kokkos_ENABLE_OPENMP": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"ENABLE_VIEW_RANKS": "2",
"BUILD_SHARED_LIBS": "ON",
"CMAKE_CXX_STANDARD": "20",
"Prop_USE_SPDLOG": "OFF"
}
},
{
"name": "prop-debug",
"displayName": "Prop configuration for debug build.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"Kokkos_ENABLE_CUDA" : "OFF",
"Kokkos_ENABLE_OPENMP" : "OFF",
"Kokkos_ENABLE_THREADS" : "OFF",
"Kokkos_ENABLE_DEBUG_BOUNDS_CHECK": "ON"
}
},
{
"name": "prop-openmp-debug",
"displayName": "Prop configuration for debug build.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"Kokkos_ENABLE_CUDA" : "OFF",
"Kokkos_ENABLE_THREADS" : "OFF",
"Kokkos_ENABLE_DEBUG_BOUNDS_CHECK": "ON"
}
},
{
"name": "prop-actions",
"displayName": "Github actions preset.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_VIEW_RANKS" : "2",
"Kokkos_ENABLE_CUDA" : "OFF",
"Kokkos_ENABLE_OPENMP": "OFF",
"Kokkos_ENABLE_THREADS" : "ON",
"Kokkos_ENABLE_SERIAL": "ON"
}
},
{
"name": "prop-cuda-actions",
"displayName": "Github actions preset with cuda enabled.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_VIEW_RANKS" : "2",
"Kokkos_ENABLE_OPENMP": "OFF",
"Kokkos_ENABLE_THREADS" : "OFF",
"Kokkos_ENABLE_SERIAL": "ON",
"Kokkos_ENABLE_CUDA" : "ON",
"Kokkos_ARCH_VOLTA70" : "ON"
}
},
{
"name": "prop-all-debug",
"displayName": "Prop configuration for debug build with cuda support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"Kokkos_ENABLE_OPENMP": "ON",
"Kokkos_ENABLE_CUDA" : "ON"
}
},
{
"name": "prop-cuda-debug",
"displayName": "Prop configuration for debug build with cuda support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"Kokkos_ENABLE_OPENMP": "OFF",
"CMAKE_CXX_STANDARD": "20",
"Kokkos_ENABLE_CUDA" : "ON"
}
},
{
"name": "prop-openmp-release",
"displayName": "Prop configuration for debug build with cuda support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"Kokkos_ENABLE_OPENMP": "ON",
"Kokkos_ENABLE_CUDA" : "OFF"
}
},
{
"name": "prop-cuda-release",
"displayName": "Prop configuration for debug build with cuda support.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": "common-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"Kokkos_ENABLE_OPENMP": "ON",
"CMAKE_CXX_STANDARD": "20",
"Kokkos_ENABLE_CUDA" : "ON"
}
}
],
"buildPresets": [
{
"name": "common-build-settings",
"description": "Ninja settings common to all build presets",
"hidden": true
}
]
}