SVMAllocator::allocate automatically maps the newly allocated SVM buffer. This is redundant for output buffers.I added a new argument to the method – bool map = true – to control whether the method should map the buffer.
2.opencl.hpp doesn't include wrapper methods for clEnqueueSVMMemFill and clEnqueueSVMMemcpy , so I added them.
2.opencl.hpp doesn't include wrapper methods for clEnqueueSVMMemFill and clEnqueueSVMMemcpy , so I added them.