Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to document cuda's ".cu" file use doxygen

Tags:

cuda

doxygen

As the cuda's ".cu" file is basically c, Is there a way we can use doxygen to generate documentation for ".cu" files? I noticed that NVIDIA use doxygen to generate cuda's docuementation. However when I use doxygen, the ".cu" files are ignored.

like image 898
emailhy Avatar asked Oct 28 '10 20:10

emailhy


1 Answers

In case anyone else is coming along and reading this with the same problem, what you need to do is this:

  1. Add *.cu to FILE_PATTERNS.

  2. Add cu=c++ EXTENSION_MAPPING.

You can find documentation for both options here.

If you're using the Windows Doxygen GUI frontend, FILE_PATTERNS is on the Input page and EXTENSION_MAPPING is on the Project page.

like image 88
reirab Avatar answered Nov 02 '22 22:11

reirab