开发者

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

开发者 https://www.devze.com 2023-01-22 06:06 出处:网络
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 docuem

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.


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.


I suspect that this is your problem: http://www.doxygen.nl/manual/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 (like *.cpp and *.h ) to filter out the source-files in the directories. If left blank the following patterns 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

0

精彩评论

暂无评论...
验证码 换一张
取 消