-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clangd
65 lines (58 loc) · 1.62 KB
/
.clangd
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
# Apply this config conditionally to all C files
If:
PathMatch: .*\.(c|h)$
CompileFlags:
Compiler: /usr/bin/gcc
---
# Apply this config conditionally to all C++ files
If:
PathMatch: .*\.(c|h)pp
CompileFlags:
Compiler: /usr/bin/g++
Add:
- "-I/home/stargazermiao/workspace/vflog/include"
---
# Apply this config conditionally to all CUDA files
If:
PathMatch: .*\.cuh?
CompileFlags:
Compiler: /usr/local/cuda/bin/nvcc
Add:
- "-I/home/stargazermiao/workspace/vflog/include"
- "-I/home/stargazermiao/workspace/vflog/build/_deps/cuco-src/include"
- "-I/home/stargazermiao/workspace/vflog/build/_deps/rmm-src/include"
- "-I/home/stargazermiao/workspace/vflog/build/_deps/fmt-src/include"
- "-I/home/stargazermiao/workspace/vflog/build/_deps/nvtx3-src/c/include"
- "-I/home/stargazermiao/workspace/vflog/build/_deps/spdlog-src/include"
- "-D__CUDACC_VER_MAJOR__=12"
- "-D__CUDACC_VER_MINOR__=0"
---
# Tweak the clangd parse settings for all files
CompileFlags:
Add:
# report all errors
- "-ferror-limit=0"
- "--cuda-gpu-arch=sm_70"
Remove:
# strip CUDA fatbin args
- "-Xfatbin*"
# strip CUDA arch flags
- "-gencode*"
- "--generate-code*"
# strip CUDA flags unknown to clang
- "-ccbin*"
- "-rdc=true"
- "--options-file"
- "--default-stream"
- "--compiler-options*"
- "--extended-lambda"
- "--expt-extended-lambda"
- "--expt-relaxed-constexpr"
- "-forward-unknown-to-host-compiler"
- "-Werror=cross-execution-space-call"
Hover:
ShowAKA: No
Diagnostics:
Suppress:
- "variadic_device_fn"
- "attributes_not_allowed"