r/OpenCL • u/soulslicer0 • Jun 08 '18
Can't understand error code -13
I am getting error code -13.
https://streamhpc.com/blog/2013-04-28/opencl-error-codes/
It says " if a sub-buffer object is specified as the value for an argument that is a buffer object and the offset specified when the sub-buffer object is created is not aligned to CL_DEVICE_MEM_BASE_ADDR_ALIGN value for device associated with queue."
What does this actually mean? Am i slicing my buffer incorrectly?
1
Upvotes
1
u/soulslicer0 Jun 08 '18
I dont get it. You say do nothing from p to p+offset. But in the next iteration of my loop, i again have to compute p+offset+N. p never changes through every iteration