Function hip_runtime_sys::hipLaunchHostFunc
source · pub unsafe extern "C" fn hipLaunchHostFunc(
stream: hipStream_t,
fn_: hipHostFn_t,
userData: *mut c_void
) -> hipError_tExpand description
@brief Enqueues a host function call in a stream.
@param [in] stream - stream to enqueue work to. @param [in] fn - function to call once operations enqueued preceeding are complete. @param [in] userData - User-specified data to be passed to the function. @returns #hipSuccess, #hipErrorInvalidResourceHandle, #hipErrorInvalidValue, #hipErrorNotSupported @warning : This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.