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

Method enqueue_svm_fill

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

1677 ///
1678 /// \see_opencl2_ref{clEnqueueSVMMemFill}
1679 event enqueue_svm_fill(void *svm_ptr,
1680 const void *pattern,
1681 size_t pattern_size,
1682 size_t size,
1683 const wait_list &events = wait_list())
1684
1685 {
1686 event event_;
1687
1688 cl_int ret = clEnqueueSVMMemFill(
1689 m_queue,
1690 svm_ptr,
1691 pattern,
1692 pattern_size,
1693 size,
1694 events.size(),
1695 events.get_event_ptr(),
1696 &event_.get()
1697 );
1698
1699 if(ret != CL_SUCCESS){
1700 BOOST_THROW_EXCEPTION(opencl_error(ret));
1701 }
1702
1703 return event_;
1704 }
1705
1706 /// Enqueues a command to free \p svm_ptr.
1707 ///

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