Re: Issue 950 in include-what-you-use: CUDA support in iwyu

69 views
Skip to first unread message

notifi...@include-what-you-use.org

unread,
May 25, 2022, 9:15:37 AM5/25/22
to include-wh...@googlegroups.com
Comment #8 on issue 950 by bgd54: CUDA support in iwyu
https://github.com/include-what-you-use/include-what-you-use/issues/950

Hi!

Is there any update on CUDA support?
I've tried to run iwyu (0.17 with clang 13.0) on a small project with the compile_commands.json that I generated with CMake. Clang has two passes on CUDA files (one for host code and one for device), hence iwyu and other clang tools consider the compile command for `*cu` files as multiple compiler jobs. I manually added `--cuda-host-only` to my compile_commands.json and got reasonable results.
There are some clang specific headers and some differences between the result with `--cuda-host-only` and `--cuda-device-only`, but generally it seems to work.


Reply all
Reply to author
Forward
0 new messages