Thanks for looking into it.
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.