Customize CUDA Fortran Profiling with NVTX

Originally published at: https://developer.nvidia.com/blog/customize-cuda-fortran-profiling-nvtx/

The NVIDIA Tools Extension (NVTX) library lets developers annotate custom events and ranges within the profiling timelines generated using tools such as the NVIDIA Visual Profiler (NVVP) and NSight. In my own optimization work, I rely heavily on NVTX to better understand internal as well as customer codes and to spot opportunities for better interaction…

Great post, it is great to have access to these features in Fortran.

I modified your module to comply with the Fortran standard requirements that arguments to c_loc have attribute TARGET or POINTER. This allows the module to work for the XLF compiler as well as PGI.

Here is a gist to the modified module: https://gist.github.com/dap...

Thanks for sharing your modifications, David!