有没有办法记录 cuda 的“.cu”文件使用 doxygen

发布于 2024-09-29 19:44:35 字数 124 浏览 1 评论 0原文

由于cuda的“.cu”文件基本上是c,有没有办法我们可以使用doxygen为“.cu”文件生成文档?我注意到 NVIDIA 使用 doxygen 来生成 cuda 的文档。但是,当我使用 doxygen 时,“.cu”文件将被忽略。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

溺孤伤于心 2024-10-06 19:44:35

如果其他人在阅读本文时遇到同样的问题,您需要做的是:

  1. *.cu 添加到 FILE_PATTERNS

  2. 添加cu=c++EXTENSION_MAPPING

您可以在此处。

如果您使用的是 Windows Doxygen GUI 前端,则 FILE_PATTERNS 位于 Input 页面上,EXTENSION_MAPPING 位于 Project 上> 页面。

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.

牛↙奶布丁 2024-10-06 19:44:35

我怀疑这是你的问题: http://www.doxygen.nl/manual/ config.html#cfg_file_patterns

如果 INPUT 标记的值包含目录,则您
可以使用FILE_PATTERNS标签来指定一个或多个通配符模式
(如 *.cpp 和 *.h )过滤掉目录中的源文件。
如果留空,则测试以下模式:
.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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文