Friday, 9 August 2013

why buffer memory allocation error in opencl

why buffer memory allocation error in opencl

I execute the OpenCL program on an NDRange with a work-group size of 16*16
and work-global size of 1024*1024. The application is matrix
multiplication. When the two input matrix size are both little, it works
well. But when the size of input matrix becomes large, for example, larger
than 20000*20000, it reports error "CL_MEM_OBJECT_ALLOCATION_FAILURE" in
the function of enqueuendrangekernrl.
I am puzzled. I am not familiar with memory allocation. What's the reason?

No comments:

Post a Comment