Open davidxiaozhi opened 1 year ago
What is the meaning of these flags?
Can they just be ignored for clangd's purposes? If so, you can instruct clangd to ignore it by creating a config file (.clangd
) with:
CompileFlags:
Remove: [-ccbin=*,-rdc=*,-gencode]
What is the meaning of these flags?
Can they just be ignored for clangd's purposes? If so, you can instruct clangd to ignore it by creating a config file (
.clangd
) with:CompileFlags: Remove: [-ccbin=*,-rdc=*,-gencode]
@HighCommander4 this is cuda need
"arguments": ["/usr/local/cuda/bin/nvcc", "-c", "-ccbin=clang", "-Xcompiler", "-fPIE", "-O3", "-I/App/conda/envs/conda_xmake/include", "-I/usr/local/cuda/Common", "-I/usr/local/cuda/include", "-allow-unsupported-compiler", "-m64", "-rdc=true", "-gencode", "arch=compute_70,code=sm_70", "-gencode", "arch=compute_70,code=compute_70", "-o", "build/.objs/sgemm/linux/x86_64/release/src/cuc/02/sgemm/sgemm.cu.o", "src/cuc/02/sgemm/sgemm.cu"],
@HighCommander4 Is there a solution to this problem
Have you tried removing the flags as suggested in this comment?
@HighCommander4 I can't remove these flags because cuda c++ programs won't compile properly from the command line,i need it
you can instruct clangd to ignore it by creating a config file (
.clangd
) with:CompileFlags: Remove: [-ccbin=*,-rdc=*,-gencode]
^ This will only remove the flags from the command line that clangd sees. Your actual build will still use the flags.
@HighCommander4 The .clangd file should be stored in the directory of the engineering root directory in vscode project or below the .vscode directory
@HighCommander4 The .clangd file should be stored in the directory of the engineering root directory in vscode project or below the .vscode directory
It applies to files in the directory tree of the directory containing the .clangd
file, so it should go into the project root.
When CUDA-based programming is performed, the clangd plug-in displays a message indicating that ccbin is not supported. The error message is as follows
json文件如下
the log