nvvp
在终端运行nvvp
点击file -> new session
在file里选择可执行文件即可
ncu
https://gpuhackshef.readthedocs.io/en/latest/tools/nvidia-profiling-tools.html
ncu -o profile --set full ./myapplication <arguments>
ncu-ui profile.ncu-rep
https://docs.nvidia.com/nsight-compute/NsightComputeCli/index.html
nv-nsight-cu-cli
https://developer.nvidia.com/blog/using-nsight-compute-to-inspect-your-kernels/
nv-nsight-cu-cli ./example
注意
如果报错The user does not have permission to profile on the target device.
就:
which ncu
/usr/local/cuda/bin/ncu
sudo /usr/local/cuda/bin/ncu -o profile --set full ./myapplication <arguments>