I've written some open cl code that enqueues a kernel with queue.enqueueNDRangeKernel(), queue.finish() and then tries to read the timing info with event.getProfilingInfo(). My problem occurs (I have identified exactly) after I call queue.finish().
queue.finish() does not return an error, but after I call it, I am no longer able to print out any variables. Not ones declared before queue.finish, not ones declared between it and the print out statement.
Does anyone have any idea what's going wrong?
There might be a buffer overflow problem. Please check the size of data that you a reading into a buffer does not exceed the allocated buffer size. I'm not sure, but this could be the issue.
Could you post a testcase to reproduce the issue?