Doxygen
Kajanan showed me this https://www.doxygen.nl/.
OpenCV for example is built on top of this https://docs.opencv.org/4.x/
Resources
Generate the Doxyfile (put this inside the /docs
folder)
Doxygen for .cu
code
You can do something like this
https://stackoverflow.com/questions/4047081/is-there-a-way-to-document-cudas-cu-file-use-doxygen