Enqueues a command to free \p svm_ptr. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMFree} \see svm_free()
| 1711 | /// |
| 1712 | /// \see svm_free() |
| 1713 | event enqueue_svm_free(void *svm_ptr, |
| 1714 | const wait_list &events = wait_list()) |
| 1715 | { |
| 1716 | event event_; |
| 1717 | |
| 1718 | cl_int ret = clEnqueueSVMFree( |
| 1719 | m_queue, |
| 1720 | 1, |
| 1721 | &svm_ptr, |
| 1722 | 0, |
| 1723 | 0, |
| 1724 | events.size(), |
| 1725 | events.get_event_ptr(), |
| 1726 | &event_.get() |
| 1727 | ); |
| 1728 | |
| 1729 | if(ret != CL_SUCCESS){ |
| 1730 | BOOST_THROW_EXCEPTION(opencl_error(ret)); |
| 1731 | } |
| 1732 | |
| 1733 | return event_; |
| 1734 | } |
| 1735 | |
| 1736 | /// Enqueues a command to map \p svm_ptr to the host memory space. |
| 1737 | /// |
nothing calls this directly
no test coverage detected