I’m currently working with NVIDIA’s preview drivers for OpenCL 1.1 on a Tesla T10 and I’m trying to use “clCreateSubBuffer”
however, each time I run my code, I get a segmentation fault on that command
is there a solution to this problem?
should I just avoid using clCreateSubBuffer when using NVIDIA’s implementation of OpenCL?
the code looks something like this:
cl_mem buffer = clCreateBuffer(context, CL_MEM_READ_WRITE, size, NULL, &status); cl_buffer_region region; region.origin = 0; region.size = size_subBuffer; cl_mem subBuffer = clCreateSubBuffer(buffer, CL_MEM_READ_WRITE, CL_BUFFER_CREATE_TYPE_REGION, ®ion, &status);
where size_subBuffer < size