[Doxygen-users] documentation of cuda fortran code
Brought to you by:
dimitri
From: Jian T. Z. <jt....@un...> - 2016-04-23 02:22:01
|
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* |