-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
103 lines (103 loc) · 3.52 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "cuda",
"displayName": "CUDA Build",
"description": "Base config to build with CUDA",
"binaryDir": "${sourceDir}/build",
"installDir": "${sourceDir}/install",
"generator": "Unix Makefiles",
"cacheVariables": {
"RESOLVE_USE_CUDA": "ON",
"CMAKE_CUDA_ARCHITECTURES": "60"
}
},
{
"name": "rocm",
"displayName": "ROCM build",
"description": "Base config to build with ROCM",
"binaryDir": "${sourceDir}/build",
"installDir": "${sourceDir}/install",
"generator": "Unix Makefiles",
"cacheVariables": {
"RESOLVE_USE_HIP": "ON"
}
},
{
"name": "cpu",
"displayName": "CPU only build",
"description": "Base config to build without GPUs",
"binaryDir": "${sourceDir}/build",
"installDir": "${sourceDir}/install",
"generator": "Unix Makefiles"
},
{
"name": "ascent",
"inherits": "cuda",
"displayName": "Ascent Build",
"description": "Custom changes specific for Ascent",
"cacheVariables": {
"CMAKE_C_COMPILER": "$env{OLCF_GCC_ROOT}/bin/gcc",
"CMAKE_CXX_COMPILER": "$env{OLCF_GCC_ROOT}/bin/g++",
"CMAKE_CUDA_ARCHITECTURES": "70"
}
},
{
"name": "ascent-clang",
"inherits": "cuda",
"displayName": "Ascent Build with Clang",
"description": "Custom changes specific for Ascent with Clang",
"cacheVariables": {
"CMAKE_C_COMPILER": "$env{OLCF_LLVM_ROOT}/bin/clang",
"CMAKE_CXX_COMPILER": "$env{OLCF_LLVM_ROOT}/bin/clang++",
"CMAKE_CUDA_COMPILER": "nvcc",
"CMAKE_CUDA_HOST_COMPILER": "$env{OLCF_LLVM_ROOT}/bin/clang++",
"CMAKE_CUDA_FLAGS": "-allow-unsupported-compiler",
"RESOLVE_USE_ASAN": "OFF",
"CMAKE_CUDA_ARCHITECTURES": "70"
}
},
{
"name": "deception",
"inherits": "cuda",
"displayName": "Deception Build",
"description": "Custom changes specific for Deception",
"cacheVariables": {
"CMAKE_CUDA_ARCHITECTURES": "60;70;75;80"
}
},
{
"name": "incline",
"inherits": "rocm",
"displayName": "Incline Build with rocm",
"description": "Custom changes specific for Incline",
"cacheVariables": {
"CMAKE_HIP_ARCHITECTURES" : "gfx908",
"CMAKE_BUILD_TYPE" : "Debug"
},
"environment": {
"CC" : "clang",
"CXX" : "clang++",
"FC" : "gfortran"
}
},
{
"name": "crusher",
"inherits": "rocm",
"displayName": "Crusher Build",
"description": "Custom changes specific for Crusher",
"cacheVariables": {
"CMAKE_HIP_ARCHITECTURES": "gfx90a",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "/opt/rocm-5.6.0/llvm/bin/clang",
"CMAKE_CXX_COMPILER": "/opt/rocm-5.6.0/llvm/bin/clang++"
}
}
]
}