Enqueues a command to unmap \p svm_ptr from the host memory space. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMUnmap}
| 1769 | /// |
| 1770 | /// \see_opencl2_ref{clEnqueueSVMUnmap} |
| 1771 | event enqueue_svm_unmap(void *svm_ptr, |
| 1772 | const wait_list &events = wait_list()) |
| 1773 | { |
| 1774 | event event_; |
| 1775 | |
| 1776 | cl_int ret = clEnqueueSVMUnmap( |
| 1777 | m_queue, |
| 1778 | svm_ptr, |
| 1779 | events.size(), |
| 1780 | events.get_event_ptr(), |
| 1781 | &event_.get() |
| 1782 | ); |
| 1783 | |
| 1784 | if(ret != CL_SUCCESS){ |
| 1785 | BOOST_THROW_EXCEPTION(opencl_error(ret)); |
| 1786 | } |
| 1787 | |
| 1788 | return event_; |
| 1789 | } |
| 1790 | #endif // CL_VERSION_2_0 |
| 1791 | |
| 1792 | /// Returns \c true if the command queue is the same at \p other. |