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

Method enqueue_svm_map

include/boost/compute/command_queue.hpp:1798–1821  ·  view source on GitHub ↗

Enqueues a command to map \p svm_ptr to the host memory space. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMMap}

Source from the content-addressed store, hash-verified

1796 ///
1797 /// \see_opencl2_ref{clEnqueueSVMMap}
1798 event enqueue_svm_map(void *svm_ptr,
1799 size_t size,
1800 cl_map_flags flags,
1801 const wait_list &events = wait_list())
1802 {
1803 event event_;
1804
1805 cl_int ret = clEnqueueSVMMap(
1806 m_queue,
1807 CL_TRUE,
1808 flags,
1809 svm_ptr,
1810 size,
1811 events.size(),
1812 events.get_event_ptr(),
1813 &event_.get()
1814 );
1815
1816 if(ret != CL_SUCCESS){
1817 BOOST_THROW_EXCEPTION(opencl_error(ret));
1818 }
1819
1820 return event_;
1821 }
1822
1823 /// Enqueues a command to unmap \p svm_ptr from the host memory space.
1824 ///

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