我正在尝试运行nvprof分析器来查看我的程序在哪里花费了更多的时间。
但我总是得到这样的错误:
======== 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,我需要在命令行中使用分析器。
发布于 2013-11-22 11:07:23
感谢Yu Zhou,这是因为您的CUDA工具包版本与您的驱动程序版本不兼容。
https://stackoverflow.com/questions/16696295
复制相似问题