forked from kokkos/kokkos-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
80 lines (80 loc) · 2.51 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
{
"version" : 3,
"configurePresets" : [
{
"name" : "default",
"binaryDir" : "${sourceDir}/build-with-${presetName}",
"cacheVariables" : {
"CMAKE_BUILD_TYPE" : "Release",
"CMAKE_CXX_STANDARD" : "17",
"KokkosTools_ENABLE_EXAMPLES" : "ON",
"KokkosTools_ENABLE_SINGLE" : "ON",
"KokkosTools_ENABLE_MPI" : "ON",
"KokkosTools_ENABLE_PAPI" : "ON",
"KokkosTools_ENABLE_TESTS" : "ON"
}
},
{
"name" : "OpenMP",
"inherits" : "default"
},
{
"name" : "Cuda",
"inherits" : "default",
"cacheVariables" : {
"CMAKE_CXX_COMPILER" : "$env{Kokkos_ROOT}/bin/nvcc_wrapper"
}
},
{
"name" : "ROCm",
"inherits" : "default",
"environment" : {
"ROCM_PATH" : "/opt/rocm"
},
"cacheVariables" : {
"CMAKE_CXX_COMPILER" : "hipcc"
}
}
],
"buildPresets" : [
{
"name" : "OpenMP",
"configurePreset" : "OpenMP",
"inheritConfigureEnvironment" : true
},
{
"name" : "Cuda",
"configurePreset" : "Cuda",
"inheritConfigureEnvironment" : true
},
{
"name" : "ROCm",
"configurePreset" : "ROCm",
"inheritConfigureEnvironment" : true
}
],
"testPresets" : [
{
"name" : "default",
"configurePreset" : "default",
"inheritConfigureEnvironment" : true,
"output" : {"outputOnFailure": true},
"execution" : {"noTestsAction": "error", "stopOnFailure": false}
},
{
"name" : "OpenMP",
"configurePreset" : "OpenMP",
"inherits" : "default"
},
{
"name" : "Cuda",
"configurePreset" : "Cuda",
"inherits" : "default"
},
{
"name" : "ROCm",
"configurePreset" : "ROCm",
"inherits" : "default"
}
]
}