cubecl_hip_sys

Function hipExternalMemoryGetMappedBuffer

Source
pub unsafe extern "C" fn hipExternalMemoryGetMappedBuffer(
    devPtr: *mut *mut c_void,
    extMem: hipExternalMemory_t,
    bufferDesc: *const hipExternalMemoryBufferDesc,
) -> hipError_t
Expand description

@brief Maps a buffer onto an imported memory object.

@param[out] devPtr Returned device pointer to buffer @param[in] extMem Handle to external memory object @param[in] bufferDesc Buffer descriptor

@return #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue

@see