cuda-gdb cmake preset

This commit is contained in:
HimariO 2024-10-27 13:38:22 +08:00
parent 53480d2bdb
commit 0882f57612

View file

@ -1,16 +1,6 @@
{
"version": 4,
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_INSTALL_RPATH": "$ORIGIN;$ORIGIN/.."
}
},
{
"name": "sycl-base",
"hidden": true,
@ -29,7 +19,6 @@
{ "name": "reldbg", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } },
{ "name": "static", "hidden": true, "cacheVariables": { "GGML_STATIC": "ON" } },
{ "name": "sycl_f16", "hidden": true, "cacheVariables": { "GGML_SYCL_F16": "ON" } },
{ "name": "vulkan", "hidden": true, "cacheVariables": { "GGML_VULKAN": "ON" } },
{
"name": "arm64-windows-msvc", "hidden": true,
@ -78,8 +67,24 @@
{ "name": "x64-windows-sycl-debug-f16", "inherits": [ "sycl-base", "debug", "sycl_f16" ] },
{ "name": "x64-windows-sycl-release", "inherits": [ "sycl-base", "release" ] },
{ "name": "x64-windows-sycl-release-f16", "inherits": [ "sycl-base", "release", "sycl_f16" ] },
{ "name": "x64-windows-vulkan-debug", "inherits": [ "base", "vulkan", "debug" ] },
{ "name": "x64-windows-vulkan-release", "inherits": [ "base", "vulkan", "release" ] }
{
"name": "x86-cuda-linux",
"description": "",
"displayName": "",
"inherits": [
"base",
"debug"
],
"cacheVariables": {
"GGML_CUDA": "1",
"CUDA_PATH": "/usr/local/cuda",
"CUDAToolkit_ROOT": "/usr/local/cuda",
"CUDAToolkit_INCLUDE_DIR": "/usr/local/cuda/include/",
"CUDAToolkit_LIBRARY_DIR": "/usr/local/cuda/lib64",
"CUDA_NVCC_FLAGS": "-g -G",
"CMAKE_CUDA_FLAGS_DEBUG": "-g -G",
"CMAKE_CUDA_FLAGS": "-maxrregcount=40"
}
}
]
}