Reading profiling log file in the middle of execution How can I read the profiling result before the

I’m new to Cuda/OpenCL profiler. I’m using compute profiler (using environment variables) and I want to read the profiling results of a kernel that has finished executing in my program while the program has not terminated yet. So far I can only read the log file after the program terminates. Anyone knows how to read the log file before the program terminates?

It’s not meant to be used in that way. Of course you could always make your kernel return at the point where you want the log to be generated.