cubecl_hip_sys

Function hipDriverGetVersion

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

@brief Returns the approximate HIP driver version.

@param [out] driverVersion driver version

@returns #hipSuccess, #hipErrorInvalidValue

@warning The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.

@see hipRuntimeGetVersion