the sample i uses is usr/local/cuda/samples/2_Graphics/Mandelbrot . The other samples or other application are the same.
The GPU is GTX 1060.
I also tried another computer with same OS, different GPU GTX 1080, and it is same problem.
the output console window:
==28685== Warning: Some profiling data are not recorded. Make sure cudaProfilerStop() or cuProfilerStop() is called before application exit to flush profile data.
But even if i manually add these function in cuda sample in the render loop, it still give the same output and error.
I also had an issue that it complains about
======== Error: unified memory profiling failed.
So i disabled unified memory profiling in setting.
I can run the stand alone cuda sample without problem.
It is okay to ignore the warning: ==28685== Warning: Some profiling data are not recorded. Make sure cudaProfilerStop() or cuProfilerStop() is called before application exit to flush profile data.
Do you see any profiler output (after disabling unified memory profiling)?
Can you try profiling with nvprof:
nvprof --unified-memory-profiling off -o prof.out /usr/local/cuda/samples/2_Graphics/Mandelbrot
Do you get any errors or warnings?
Can you please share the profiler output file “prof.out”?
Can you please try profiling some simpler sample such as “vectorAdd”?
Or you can try using a newer version of CUDA Toolkit.