Is there a way to document cuda ".cu" using a doxygen file

As the cuda ".cu" file is basically c, is there a way we can use doxygen to create documentation for the ".cu" files? I noticed that NVIDIA uses doxygen to create cuda workflows. However, when I use doxygen, the .cu files are ignored.

+6
cuda doxygen
source share
2 answers

I suspect this is your problem: http://www.stack.nl/~dimitri/doxygen/config.html#cfg_file_patterns

If the value of the INPUT tag contains directories, you can use the FILE_PATTERNS tag to specify one or more wildcard patterns (such as * .cpp and * .h) to filter out the source files in directories. If left blank, the following templates are tested: .c * .cc * .cxx * .cpp * .c ++ * .d * .java * .ii * .ixx * .ipp * .i ++ * .inl * .h * .hh.hxx * .hpp * .h ++ * .idl * .odl * .cs * .php * .php3 * .inc * .m * .mm * .dox * .py.f90 * .f *. vhd * .vhdl

+3
source share

In case someone else goes and reads this with the same problem, you need to do the following:

  • Add *.cu to FILE_PATTERNS .

  • Add cu=c++ EXTENSION_MAPPING .

You can find the documentation for both options here .

If you use the Windows Doxygen GUI, FILE_PATTERNS is on the Input page, and EXTENSION_MAPPING is on the Project page.

+1
source share

All Articles