-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Feature: CUDAFeature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
Milestone
Description
Feature Request
CMake is storing the flags of include dirs for compiler like nvcc in a file ended with .rsp. You can see the related cmake configuration here. Then, the exported compile_commands.json will be something like this
{
"directory": "/workspace/project/build",
"command": "/usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler --options-file CMakeFiles/project.dir/includes_CUDA.rsp -gencode arch=compute_80,code=sm_80 -Xcudafe -O3 -DNDEBUG -std=c++17 -Xcompiler=-fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -x cu -c /home/whcui/project/src/extension.cu -o CMakeFiles/extension.dir/src/extension.cu.o",
"file": "/workspace/project/src/extension.cu",
"output": "CMakeFiles/extension.dir/src/extension.cu.o"
},
However, currently, the lsp cannot recognize this for intelligence of included header.
Metadata
Metadata
Assignees
Labels
Feature: CUDAFeature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
Type
Projects
Status
Done