Compile a program with CUDA flag: -lineinfo or -G
cuda block – Print or select the current CUDA block
cuda device – Print or select the current CUDA device
cuda grid – Print or select the current CUDA grid
cuda kernel – Print or select the current CUDA kernel
cuda lane – Print or select the current CUDA lane
cuda sm – Print or select the current CUDA SM
cuda thread – Print or select the current CUDA thread
cuda warp – Print or select the current CUDA warp
-lineinfo or -G