views:

20

answers:

0

I am badly stuck on why my OpenCL program crashes after clEnqueueReadBuffer calls. Is it a okay if I post all 300 lines of boilerplate/kernel code? Otherwise any suggestions on how to debug OpenCL code besides eyeballing and error code printing would be appreciated.

UPDATE Wow, so I merely messed up my paramter to host memory on my clEnqueueReadBuffer calls. I wrote &var when I needed var. For some reason I didn't catch this earlier...

Anyways, is it unwise to post a 300 line code block, or do people do this regularly if it is necessary?