MCPcopy Create free account
hub / github.com/boostorg/compute / enqueue_svm_unmap

Method enqueue_svm_unmap

include/boost/compute/command_queue.hpp:1771–1789  ·  view source on GitHub ↗

Enqueues a command to unmap \p svm_ptr from the host memory space. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMUnmap}

Source from the content-addressed store, hash-verified

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.

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 5

wait_listClass · 0.85
opencl_errorClass · 0.85
get_event_ptrMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64