Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for nvcc #118

Open
akshit-sharma opened this issue Oct 22, 2021 · 1 comment
Open

support for nvcc #118

akshit-sharma opened this issue Oct 22, 2021 · 1 comment

Comments

@akshit-sharma
Copy link

Support for converting cuda from Makefile to compile_commands.json.

Sample Makefile

CXX=g++
all: helloworld hello
helloworld: helloworld.cpp
      $(CXX) -o helloworld helloworld.cpp --std=c++17 -DMAKE
hello: hello.cu
      nvcc -o hello hello.cu -DCUMAKE
clean:
      rm -f hello helloworld

current compile_commands.json creation

[
 {
  "directory": "/home/akshit/Projects/CppVariations/makefile",
  "arguments": [
   "g++",
   "-o",
   "helloworld",
   "helloworld.cpp",
   "--std=c++17",
   "-DMAKE"
  ],
  "file": "helloworld.cpp"
 }
]
@explocion
Copy link

It seems all targets for filetype .cu is ignored. I use clang++ to for compiling cuda files, but it is ignored too.

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

No branches or pull requests

2 participants