Is it possible to release host memory created by clEnqueueMapBuffer?
For example, create a buffer and map host memory:
cl_mem buffer = clCreateBuffer(...);
float* dataPtr = (float*)clEnqueueMapBuffer(...,buffer,...);
Do some OpenCL stuff, then cleanup:
clEnqueueUnmapMemObject(...,buffer,(void *)dataPtr,...);
clReleaseMemObject(buffer);
However, at this point the dataPtr is not null. How do you release the memory on the host allocated by clEnqueueMapBuffer? Delete and free don't work and I can find nothing in OpenCL documentation that provides a means to release the buffer.