Profile a GPU Program

HAL provides GPU profile functionality via NVIDIA Nsight System CLI and NVIDIA Nsight Compute CLI. You can generate the profile result files on HAL and then download them to your local machine to visualize.

NVIDIA Nsight Systems CLI

NVIDIA Nsight Systems user guide.

nsys [global-options] profile [options] <application> [application-arguments]

NVIDIA Nsight Compute CLI

NVIDIA Nsight Compute CLI user guide.

nv-nsight-cu-cli -o profile <application> [application-arguments]

Example

There is a simple VecAdd program in /opt/samples/profile/VecAdd for NVIDIA Nsight System CLI and NVIDIA Nsight Compute CLI.

Nsight System CLI:

swrun -p gpux1
module load cuda
nsys profile /opt/samples/profile/VecAdd

Nsight Compute CLI:

swrun -p gpux1
module load cuda
module load nsight_compute/2019.5.1
nv-nsight-cu-cli -o profile /opt/samples/profile/VecAdd