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

Method enqueue_svm_free

include/boost/compute/command_queue.hpp:1713–1734  ·  view source on GitHub ↗

Enqueues a command to free \p svm_ptr. \opencl_version_warning{2,0} \see_opencl2_ref{clEnqueueSVMFree} \see svm_free()

Source from the content-addressed store, hash-verified

1711 ///
1712 /// \see svm_free()
1713 event enqueue_svm_free(void *svm_ptr,
1714 const wait_list &events = wait_list())
1715 {
1716 event event_;
1717
1718 cl_int ret = clEnqueueSVMFree(
1719 m_queue,
1720 1,
1721 &svm_ptr,
1722 0,
1723 0,
1724 events.size(),
1725 events.get_event_ptr(),
1726 &event_.get()
1727 );
1728
1729 if(ret != CL_SUCCESS){
1730 BOOST_THROW_EXCEPTION(opencl_error(ret));
1731 }
1732
1733 return event_;
1734 }
1735
1736 /// Enqueues a command to map \p svm_ptr to the host memory space.
1737 ///

Callers

nothing calls this directly

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