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

Method enqueue_svm_fill

include/boost/compute/command_queue.hpp:1736–1761  ·  view source on GitHub ↗

Enqueues a command to fill \p size bytes of data at \p svm_ptr with \p pattern. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMMemFill}

Source from the content-addressed store, hash-verified

1734 ///
1735 /// \see_opencl2_ref{clEnqueueSVMMemFill}
1736 event enqueue_svm_fill(void *svm_ptr,
1737 const void *pattern,
1738 size_t pattern_size,
1739 size_t size,
1740 const wait_list &events = wait_list())
1741
1742 {
1743 event event_;
1744
1745 cl_int ret = clEnqueueSVMMemFill(
1746 m_queue,
1747 svm_ptr,
1748 pattern,
1749 pattern_size,
1750 size,
1751 events.size(),
1752 events.get_event_ptr(),
1753 &event_.get()
1754 );
1755
1756 if(ret != CL_SUCCESS){
1757 BOOST_THROW_EXCEPTION(opencl_error(ret));
1758 }
1759
1760 return event_;
1761 }
1762
1763 /// Enqueues a command to free \p svm_ptr.
1764 ///

Callers 2

dispatch_fillFunction · 0.80
dispatch_fill_asyncFunction · 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

no test coverage detected