我試圖運行nvprof
分析器來查看我的程序在哪裏花費更多時間。Nvprof內部錯誤15:120
但我總是得到這個錯誤:
======== NVPROF is profiling gpu_stuff... ======== Command: gpu_stuff ======== Error: Internal profiler error 15:120======== Warning: Application returned non-zero code 255 ======== Error: failed to read result file. ======== Warning: make sure cudaDeviceReset() is called before application exit to flush profile data.
我打電話cudaDeviceReset()
在代碼的結束,這是還沒有成型。
Obs:我沒有X-server
disponible,我需要在命令行中使用profiler。
如果您不使用nvprof,您的應用程序是否正常運行?如果您嘗試分析cuda樣本中的vecadd樣本等簡單示例,會發生什麼情況? –
什麼是您的驅動程序版本?它與您的CUDA工具包版本兼容嗎? –
@RobertCrovella - 我試圖描述你說的例子,它沒有奏效。 @YuZhou - 由於您的評論,我現在可以使用'nvprof'。我的驅動程序版本與我的CUDA工具包版本不兼容。你能回答這個問題嗎?因此,我可以接受你的答案並標記解決的問題。謝謝 – Blufter