Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Add support to cuda c file #780

Open
changephilip opened this issue Aug 21, 2018 · 4 comments
Open

Add support to cuda c file #780

changephilip opened this issue Aug 21, 2018 · 4 comments

Comments

@changephilip
Copy link

My project includes some .cu and .cuh files.
Cquery server can't find these files even i had wrote file path in .cquery file.
The server will report error like below:
"
Error from the Language Server: Unable to find file /xxx/xxx/xx/xxx.cuh.(Internal Error)
"

@bstaletic
Copy link
Contributor

This isn't too easy, but isn't too hard either.
Here's how ycmd implemented it: ycm-core/ycmd#1031
Clang can compile cuda projects, but if the compilation database is made with nvcc, there's going to be trouble. Read everything in the above link for details.

@Kelvin-Ng
Copy link
Contributor

Does it mean that it is easy if .cquery is used, or the compilation database is not made with nvcc?

@bstaletic
Copy link
Contributor

Yes, because it eliminates the known not working configuration. Someone still has to make sure cquery isn't doing anything stupid and write tests that prove that cuda works.

@Kelvin-Ng
Copy link
Contributor

I have made some minor changes to make it work with CUDA using .cquery. I am currently using it to write CUDA programs. It works great so far. I will see if there is any problem after longer usage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants