使用visual profiler出现的问题

我在使用visual profiler生成timeline是弹出了如下信息:unable to read the entilre session timeline.The displayed timeline may be empty or incomplete because the application aborted or failed to flush profile data before exiting.The application should call cudaDeviceRest() before exiting to ensure that all profile data is flushed.
初次使用visual profiler,程序运行过是对的,并且注释掉了所有system(“pause”)。请求高手解答。

看提示,说的是,在程序运行结束的时候。数据还没有全部传送到profiler里面。 应用程序应该在退出前调用cudaDeviceRest(),不知道楼主试没试过?

用的是cuda5.5和自带的visual profiler

LZ您好:

请在您main函数return之前,添加cudaDeviceReset();,以保证时间线可以正常生成。

祝您好运~

谢谢,添加成功了

嗯,在main函数最后添加就成功了

恭喜您成功解决问题,欢迎您常来论坛~