forked from chrxh/alien
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
54 lines (54 loc) · 1.98 KB
/
Copy pathCMakePresets.json
File metadata and controls
54 lines (54 loc) · 1.98 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 31,
"patch": 0
},
"configurePresets": [
{
"name": "ninja",
"displayName": "Ninja Multi-Config",
"description": "Fast cross-platform build (Windows and Linux). Compiles all CUDA translation units in parallel (file-level) via the Ninja Multi-Config generator, unlike the Visual Studio generator which builds whole library projects one after another. Requires Ninja and the CUDA toolchain (nvcc) on PATH; on Windows it must additionally be run from an MSVC environment (e.g. via build-windows-ninja.bat).",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build-ninja",
"toolchainFile": "${sourceDir}/external/vcpkg/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "ninja-hip",
"displayName": "Ninja Multi-Config (HIP / AMD)",
"description": "Same as the 'ninja' preset, but builds the GPU engine for AMD GPUs with ROCm/HIP instead of CUDA. Uses a separate binary directory so a CUDA build in build-ninja stays intact. Requires a ROCm/HIP installation; without an explicit -DCMAKE_HIP_ARCHITECTURES the target architecture is auto-detected from the GPUs of the host.",
"inherits": "ninja",
"binaryDir": "${sourceDir}/build-ninja-hip",
"cacheVariables": {
"USE_HIP": "ON"
}
}
],
"buildPresets": [
{
"name": "ninja-release",
"displayName": "Ninja - Release",
"configurePreset": "ninja",
"configuration": "Release"
},
{
"name": "ninja-debug",
"displayName": "Ninja - Debug",
"configurePreset": "ninja",
"configuration": "Debug"
},
{
"name": "ninja-hip-release",
"displayName": "Ninja (HIP / AMD) - Release",
"configurePreset": "ninja-hip",
"configuration": "Release"
},
{
"name": "ninja-hip-debug",
"displayName": "Ninja (HIP / AMD) - Debug",
"configurePreset": "ninja-hip",
"configuration": "Debug"
}
]
}