杂项
杂项
杂项
.clangd配置
在项目根目录下创建一个名为.clangd的文件,内容如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CompileFlags:
CompilationDatabase: build
Add:
- --gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/11
- -I/home/songyexin/GPU-train/src
- -x
- cuda
- --cuda-path=/usr/local/cuda
- --cuda-gpu-arch=sm_52
- --cuda-host-only
Remove:
- -fno-lifetime-dse
- -forward-unknown-to-host-compiler
- --options-file
- CMakeFiles/cuda_train.dir/includes_CUDA.rsp
- --generate-code=arch=compute_52,code=[compute_52,sm_52]
- -rdc=true
- -lineinfo
- -x
- cu
本文由作者按照 CC BY 4.0 进行授权