Open
Description
Description
The OpenCL functions clCreateBuffer
and clCreateSubBuffer
require the size argument to be non-zero.
Currently there are no guards against this possibility in the OpenCL backend.
Details
- The above functions return the error code
CL_INVALID_BUFFER_SIZE
when called withsize=0
. - Affects
occa::opencl::buffer::malloc
andocca::opencl::memory::slice