cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

indigoOrange
Journeyman III

queue.finish() Causing memory error

After calling queue.finish() no variables can be printed without causing a memory error.

Hi,

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?

 

Thanks

0 Likes
1 Reply
omkaranathan
Adept I

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?

0 Likes