-
ncu: GPU CUDA Kernel Profiler
ncu: GPU CUDA Kernel Profiler
Available
- Puhti: version depends on the CUDA environment
- Mahti: version depends on the CUDA environment
- Roihu-GPU: version depends on the CUDA environment
License
Usage is possible for both academic and commercial purposes.
Usage
NVIDIA Nsight Compute is a CUDA kernel profiler that provides detailed performance data and offers guidance for optimizing your CUDA kernels. The ncu profiling and debugging tool collects and views profiling data from the command-line. It is a low level CUDA kernel profiling tool. It enables the collection of a timeline of CUDA-related activities on both CPU and GPU, including kernel execution, memory transfers, memory set and CUDA API calls and events or metrics for CUDA kernels.
Profiling is done in two steps:
- Collect profiling data by running the application under
ncucommand line tool - Analyze the results with
ncu-uiGUI.
To use ncu, one needs to first load the CUDA module:
For collecting data, run your application normally via Slurm and prepend your executable with ncu <profiling options>:
The profiling report (.ncu-rep is appended to filename given with the -o option) is analysed
with the ncu-ui GUI:
The ncu-ui can be run directly on the CSC supercomputers (**Note: in Roihu GUI does not work at the moment), however, for smoother operation of the GUI it is recommended to copy the results files to your local workstation and view them using a local
installation of Nsight Compute.