2013-05-22 54 views
0

我試圖運行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。

+0

如果您不使用nvprof,您的應用程序是否正常運行?如果您嘗試分析cuda樣本中的vecadd樣本等簡單示例,會發生什麼情況? –

+1

什麼是您的驅動程序版本?它與您的CUDA工具包版本兼容嗎? –

+0

@RobertCrovella - 我試圖描述你說的例子,它沒有奏效。 @YuZhou - 由於您的評論,我現在可以使用'nvprof'。我的驅動程序版本與我的CUDA工具包版本不兼容。你能回答這個問題嗎?因此,我可以接受你的答案並標記解決的問題。謝謝 – Blufter

回答

1

感謝於舟 這是因爲您的CUDA工具包版本與您的驅動程序版本不兼容。