-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCMakePresets.json
More file actions
59 lines (59 loc) · 2.21 KB
/
Copy pathCMakePresets.json
File metadata and controls
59 lines (59 loc) · 2.21 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
{
"version": 6,
"configurePresets": [
{
"name": "debug",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -O1 -g",
"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -O1 -g",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined"
}
},
{
"name": "release",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" }
},
{
"name": "release-portable",
"binaryDir": "${sourceDir}/build/release-portable",
"description": "Portable + fast CPU: build every ggml-cpu ISA variant and pick the best at runtime. Avoids -march=native (fragile, and stripped by Nix's NIX_ENFORCE_NO_NATIVE), so binaries run anywhere yet still use AVX-512/VNNI where present.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"GGML_NATIVE": "OFF",
"GGML_BACKEND_DL": "ON",
"GGML_CPU_ALL_VARIANTS": "ON",
"CMAKE_RUNTIME_OUTPUT_DIRECTORY": "${sourceDir}/build/release-portable/bin"
}
},
{
"name": "profile",
"binaryDir": "${sourceDir}/build/profile",
"cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" }
},
{
"name": "fuzz",
"binaryDir": "${sourceDir}/build/fuzz",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"PF_FUZZ": "ON"
}
}
],
"buildPresets": [
{ "name": "debug", "configurePreset": "debug" },
{ "name": "release", "configurePreset": "release" },
{ "name": "release-portable", "configurePreset": "release-portable" },
{ "name": "profile", "configurePreset": "profile" },
{ "name": "fuzz", "configurePreset": "fuzz" }
],
"testPresets": [
{ "name": "debug", "configurePreset": "debug", "output": { "outputOnFailure": true } },
{ "name": "release", "configurePreset": "release", "output": { "outputOnFailure": true } },
{ "name": "release-portable", "configurePreset": "release-portable", "output": { "outputOnFailure": true } }
]
}