cubecl_hip_sys

Function hipStreamAttachMemAsync

Source
pub unsafe extern "C" fn hipStreamAttachMemAsync(
    stream: hipStream_t,
    dev_ptr: *mut c_void,
    length: usize,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Attach memory to a stream asynchronously in HIP.

@param [in] stream - stream in which to enqueue the attach operation @param [in] dev_ptr - pointer to memory (must be a pointer to managed memory or to a valid host-accessible region of system-allocated memory) @param [in] length - length of memory (defaults to zero) @param [in] flags - must be one of hipMemAttachGlobal, hipMemAttachHost or hipMemAttachSingle (defaults to hipMemAttachSingle)

@returns #hipSuccess, #hipErrorInvalidValue

@note This API is implemented on Linux, under development on Windows.