cubecl_hip_sys

Function hipMemPtrGetInfo

Source
pub unsafe extern "C" fn hipMemPtrGetInfo(
    ptr: *mut c_void,
    size: *mut usize,
) -> hipError_t
Expand description

@brief Get allocated memory size via memory pointer.

This function gets the allocated shared virtual memory size from memory pointer.

@param[in] ptr Pointer to allocated memory @param[out] size Returns the allocated memory size in bytes

@return #hipSuccess, #hipErrorInvalidValue