// Create a device pointer for (zero-copy) //cl_mem device_ = clCreateBuffer(bones_context,CL_MEM_READ_WRITE|CL_MEM_USE_HOST_PTR,*sizeof(),,&bones_errors); error_check(bones_errors); // Create a device pointer for cl_mem device_ = clCreateBuffer(bones_context,CL_MEM_READ_WRITE,*sizeof(),NULL,&bones_errors); error_check(bones_errors);