cubecl_hip_sys

Function hipDevicePrimaryCtxRelease

Source
pub unsafe extern "C" fn hipDevicePrimaryCtxRelease(
    dev: hipDevice_t,
) -> hipError_t
Expand description

@brief Release the primary context on the GPU.

@param [in] dev Device which primary context is released

@returns #hipSuccess

@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice @warning This function return #hipSuccess though doesn’t release the primaryCtx by design on HIP/HCC path.

@warning This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.