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

Method enqueue_svm_map

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

1739 ///
1740 /// \see_opencl2_ref{clEnqueueSVMMap}
1741 event enqueue_svm_map(void *svm_ptr,
1742 size_t size,
1743 cl_map_flags flags,
1744 const wait_list &events = wait_list())
1745 {
1746 event event_;
1747
1748 cl_int ret = clEnqueueSVMMap(
1749 m_queue,
1750 CL_TRUE,
1751 flags,
1752 svm_ptr,
1753 size,
1754 events.size(),
1755 events.get_event_ptr(),
1756 &event_.get()
1757 );
1758
1759 if(ret != CL_SUCCESS){
1760 BOOST_THROW_EXCEPTION(opencl_error(ret));
1761 }
1762
1763 return event_;
1764 }
1765
1766 /// Enqueues a command to unmap \p svm_ptr from the host memory space.
1767 ///

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