June 22, 2025

Nvidia and CUDA programming - Let's try more CUDA programming

I am working with the "even easier" introductory tutorial

The NSYS tool

I was surprised when the tutorial called for the use of this tool. They call it the NSight Systems CLI, `nsys` -- and this sounds like some 3rd party tool that I surely won't have, will probably have to pay for, and will probably only be available for Windows.

None of this is true. I type "nsys" on my Fedora linux system, and there it is! It was doubtlessly installed as part of the toolkit.

They say you can type "nsys profile -t cuda --stats=true ./simple" (and I do). This yields a screen full of information.

The tutorial tells you to fetch the "nsys_easy" script from this Github repository:

It is a 51 line bash script -- a wrapper around "nsys" The first example below is from the Github README, the second line (with no options) is what I use and what the tutorial recommends:
nsys_easy -t cuda,osrt -s none -c none -o nsys_easy -r cuda_gpu_kernel_sum ./simple
nsys_easy ./simple

Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org