my program crashes when I try to call clEnqueueReadBuffer() to read data from the device. If I comment some lines out of the cl file, the copy process finishs successfully. But there aren't any compile errors in these lines. This seems a bit weird to me, cause I try to catch the error after the function call, but the error code isn't specified in the cl specification.
Any tips for me? Thanks in advance.