llama
/
CMakePresets.json
68 строк · 3.1 Кб
1{
2"version": 4,
3"configurePresets": [
4{
5"name": "base",
6"hidden": true,
7"generator": "Ninja",
8"binaryDir": "${sourceDir}/build-${presetName}",
9"cacheVariables": {
10"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
11"CMAKE_INSTALL_RPATH": "$ORIGIN;$ORIGIN/.."
12}
13},
14{
15"name": "sycl-base",
16"hidden": true,
17"generator": "Ninja",
18"binaryDir": "${sourceDir}/build-${presetName}",
19"cacheVariables": {
20"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
21"CMAKE_CXX_COMPILER": "icx",
22"CMAKE_C_COMPILER": "cl",
23"GGML_SYCL": "ON",
24"CMAKE_INSTALL_RPATH": "$ORIGIN;$ORIGIN/.."
25}
26},
27{ "name": "debug", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } },
28{ "name": "release", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } },
29{ "name": "reldbg", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } },
30{ "name": "static", "hidden": true, "cacheVariables": { "GGML_STATIC": "ON" } },
31{ "name": "sycl_f16", "hidden": true, "cacheVariables": { "GGML_SYCL_F16": "ON" } },
32
33{
34"name": "arm64-windows-msvc", "hidden": true,
35"architecture": { "value": "arm64", "strategy": "external" },
36"toolset": { "value": "host=x64", "strategy": "external" },
37"cacheVariables": {
38"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/arm64-windows-msvc.cmake"
39}
40},
41
42{
43"name": "arm64-windows-llvm", "hidden": true,
44"architecture": { "value": "arm64", "strategy": "external" },
45"toolset": { "value": "host=x64", "strategy": "external" },
46"cacheVariables": {
47"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/arm64-windows-llvm.cmake"
48}
49},
50
51{ "name": "arm64-windows-llvm-debug" , "inherits": [ "base", "arm64-windows-llvm", "debug" ] },
52{ "name": "arm64-windows-llvm-release", "inherits": [ "base", "arm64-windows-llvm", "reldbg" ] },
53{ "name": "arm64-windows-llvm+static-release", "inherits": [ "base", "arm64-windows-llvm", "reldbg", "static" ] },
54
55{ "name": "arm64-windows-msvc-debug" , "inherits": [ "base", "arm64-windows-msvc", "debug" ] },
56{ "name": "arm64-windows-msvc-release", "inherits": [ "base", "arm64-windows-msvc", "reldbg" ] },
57{ "name": "arm64-windows-msvc+static-release", "inherits": [ "base", "arm64-windows-msvc", "reldbg", "static" ] },
58
59{ "name": "x64-windows-msvc-debug" , "inherits": [ "base", "debug" ] },
60{ "name": "x64-windows-msvc-release", "inherits": [ "base", "reldbg" ] },
61{ "name": "x64-windows-msvc+static-release", "inherits": [ "base", "reldbg", "static" ] },
62
63{ "name": "x64-windows-sycl-debug" , "inherits": [ "sycl-base", "debug" ] },
64{ "name": "x64-windows-sycl-debug-f16", "inherits": [ "sycl-base", "debug", "sycl_f16" ] },
65{ "name": "x64-windows-sycl-release", "inherits": [ "sycl-base", "release" ] },
66{ "name": "x64-windows-sycl-release-f16", "inherits": [ "sycl-base", "release", "sycl_f16" ] }
67]
68}
69