cubecl_hip_sys

Function hipRuntimeGetVersion

Source
pub unsafe extern "C" fn hipRuntimeGetVersion(
    runtimeVersion: *mut c_int,
) -> hipError_t
Expand description

@brief Returns the approximate HIP Runtime version.

@param [out] runtimeVersion HIP runtime version

@returns #hipSuccess, #hipErrorInvalidValue

@warning The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.

@see hipDriverGetVersion