I have a very strange problem for my clangd. It can provide intellgence for my cpp files correctly, but when it comes to .cu files, it don't work.
Here's my situation.I've add the torch lib in my project. when I include <torch/library.h>. clangd works correctly.
However, when I include <torch/library.h> in a .cu file. clangd doesn't seem to be working.
But when I rename the .cu file to .cpp file. It works again.
The three files are in the same directory. I can make sure there is no problem with my cmake configuration.
Logs
when I hover on the #include<torch/library.h> in the .cu file
I have a very strange problem for my clangd. It can provide intellgence for my cpp files correctly, but when it comes to .cu files, it don't work. Here's my situation.I've add the torch lib in my project. when I include <torch/library.h>. clangd works correctly. However, when I include <torch/library.h> in a .cu file. clangd doesn't seem to be working. But when I rename the .cu file to .cpp file. It works again. The three files are in the same directory. I can make sure there is no problem with my cmake configuration.
Logs when I hover on the #include<torch/library.h> in the .cu file
when I hover on the #include<torch/library.h> in the .cpp file
System information Clangd version (from the log, or
clangd --version
):clangd extension version: v0.1.25 Operating system: Ubuntu 20.04.5 LTS