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

Method enqueue_svm_unmap

include/boost/compute/command_queue.hpp:1828–1846  ·  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

1826 ///
1827 /// \see_opencl2_ref{clEnqueueSVMUnmap}
1828 event enqueue_svm_unmap(void *svm_ptr,
1829 const wait_list &events = wait_list())
1830 {
1831 event event_;
1832
1833 cl_int ret = clEnqueueSVMUnmap(
1834 m_queue,
1835 svm_ptr,
1836 events.size(),
1837 events.get_event_ptr(),
1838 &event_.get()
1839 );
1840
1841 if(ret != CL_SUCCESS){
1842 BOOST_THROW_EXCEPTION(opencl_error(ret));
1843 }
1844
1845 return event_;
1846 }
1847 #endif // BOOST_COMPUTE_CL_VERSION_2_0
1848
1849 #if defined(BOOST_COMPUTE_CL_VERSION_2_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)

Callers 6

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
svm_ptr_index_exprClass · 0.80
copy_to_host_mapFunction · 0.80
copy_to_device_mapFunction · 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 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64