Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
112 lines (112 loc) · 3.65 KB
/
Copy pathCMakePresets.json
File metadata and controls
112 lines (112 loc) · 3.65 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
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
104
105
106
107
108
109
110
111
112
{
"version": 3,
"configurePresets": [
{
"name": "default",
"displayName": "Default (Release)",
"description": "Release build with ONNX Runtime backend",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"USE_ONNX_RUNTIME": "ON"
}
},
{
"name": "debug-sanitizers",
"displayName": "Debug with Sanitizers",
"description": "Debug build with AddressSanitizer and UndefinedBehaviorSanitizer",
"binaryDir": "${sourceDir}/build-san",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_ONNX_RUNTIME": "ON",
"SANITIZERS": "ON"
}
},
{
"name": "debug-tsan",
"displayName": "Debug with ThreadSanitizer",
"description": "Debug build with ThreadSanitizer (data-race detection). Mutually exclusive with SANITIZERS and STRICT_UBSAN.",
"binaryDir": "${sourceDir}/build-tsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_ONNX_RUNTIME": "ON",
"THREAD_SANITIZER": "ON"
}
},
{
"name": "debug-strict-ubsan",
"displayName": "Debug with Strict UBSan",
"description": "Debug build with additional UndefinedBehaviorSanitizer checks. Mutually exclusive with SANITIZERS and THREAD_SANITIZER.",
"binaryDir": "${sourceDir}/build-strict-ubsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_ONNX_RUNTIME": "ON",
"STRICT_UBSAN": "ON"
}
},
{
"name": "debug-valgrind",
"displayName": "Debug for Valgrind",
"description": "Plain Debug build (no sanitizers) for Valgrind memcheck/profiling. Enables the memcheck/callgrind/massif targets.",
"binaryDir": "${sourceDir}/build-valg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_ONNX_RUNTIME": "ON"
}
},
{
"name": "gpu-pipeline",
"displayName": "GPU pipeline (TensorRT + CUDA preprocess + CUDA postprocess)",
"description": "TensorRT backend with the full GPU pipeline: CUDA kernel + nvJPEG preprocessing and CUDA segmentation postprocessing. Needs nvcc and the CUDA Toolkit's nvJPEG; TensorRT resolves from -DTENSORRT_ROOTDIR or is downloaded by the dependency resolver.",
"binaryDir": "${sourceDir}/build-gpu",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"USE_ONNX_RUNTIME": "OFF",
"USE_TENSORRT": "ON",
"USE_GPU_PIPELINE": "ON",
"TENSORRT_ROOTDIR": "$env{TENSORRT_ROOTDIR}"
}
},
{
"name": "gpu-pipeline-dali",
"displayName": "GPU pipeline (TensorRT + DALI preprocess + CUDA postprocess)",
"description": "The gpu-pipeline preset with DALI as the alternative preprocessor. Stage DALI first (./scripts/fetch_dali.sh); override DALI_ROOT/TENSORRT_ROOTDIR if not under ~/dependencies.",
"inherits": "gpu-pipeline",
"binaryDir": "${sourceDir}/build-gpu-dali",
"cacheVariables": {
"USE_DALI": "ON",
"DALI_ROOT": "$env{HOME}/dependencies/dali"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "debug-sanitizers",
"configurePreset": "debug-sanitizers"
},
{
"name": "debug-tsan",
"configurePreset": "debug-tsan"
},
{
"name": "debug-strict-ubsan",
"configurePreset": "debug-strict-ubsan"
},
{
"name": "debug-valgrind",
"configurePreset": "debug-valgrind"
},
{
"name": "gpu-pipeline",
"configurePreset": "gpu-pipeline"
},
{
"name": "gpu-pipeline-dali",
"configurePreset": "gpu-pipeline-dali"
}
]
}