clEnqueueReadBuffer gets out-of-resource problem out-of-resource problem

hello guys,

my program generates an out-of-resource problem at this line:

ciErr1 = clEnqueueReadBuffer(cqCommandQueue, cmDevNeighbors, CL_TRUE, 0, sizeof(cl_float) * iNumElements*60, neighbors, 0, NULL, NULL);

is this a driver bug? why would reading buffer requires resources? and according to the opencl specification, the clEnqueueReadBuffer function should never generate an out-of-resource problem.

is there anybody having the same problem?


i’m using a 8800 gtx card under windows vista.