Hello,

I am trying to document a source code which includes fortran90 and some
cuda fortran files. Doxygen handles fortran90 very well, but it has issues
with recognizing subroutines in cuda fortran code. In the below example
code, the module mod_index is documented properly, but the subroutine idx
is not documented. The cause of that I found is that "attributes(device)",
a syntax of cuda fortran, is in front of subroutine. If I remove
"attributes(device)" from the source code, then doxygen can list the
subroutine idx as a member of the module mod_index.

It's almost impossible to remove by hand as too many places in the code. I
was hoping something more automatic. I tried enabling preprocessor and
predefined macros, but I need more information to understand it better. I
use doxygen 1.8.11 on windows 7 machine.

+++++++++++++++++++++
module mod_index
     use cudafor
     implicit none

     contains

     attributes(device) subroutine idx(i,j)
     integer :: i,j,k
        ~~~~~~~~
     end subroutine
end module mod_index
+++++++++++++++++++++

Thanks
Tao
*---*

*Jian Tao ZhangMSc Mechanical Engineering*
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to