| 6772 | } |
| 6773 | |
| 6774 | inline cl_int enqueueUnmapMemObject( |
| 6775 | const Memory& memory, |
| 6776 | void* mapped_ptr, |
| 6777 | const VECTOR_CLASS<Event>* events = NULL, |
| 6778 | Event* event = NULL) |
| 6779 | { |
| 6780 | cl_int error; |
| 6781 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 6782 | detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR); |
| 6783 | if (error != CL_SUCCESS) { |
| 6784 | return error; |
| 6785 | } |
| 6786 | |
| 6787 | cl_event tmp; |
| 6788 | cl_int err = detail::errHandler( |
| 6789 | ::clEnqueueUnmapMemObject( |
| 6790 | queue(), memory(), mapped_ptr, |
| 6791 | (events != NULL) ? (cl_uint) events->size() : 0, |
| 6792 | (events != NULL && events->size() > 0) ? (cl_event*) &events->front() : NULL, |
| 6793 | (event != NULL) ? &tmp : NULL), |
| 6794 | __ENQUEUE_UNMAP_MEM_OBJECT_ERR); |
| 6795 | |
| 6796 | if (event != NULL && err == CL_SUCCESS) |
| 6797 | *event = tmp; |
| 6798 | |
| 6799 | return err; |
| 6800 | } |
| 6801 | |
| 6802 | inline cl_int enqueueCopyBuffer( |
| 6803 | const Buffer& src, |
nothing calls this directly
no test coverage detected