hipctxgetapiversion Interface Reference#
hipfort::hipctxgetapiversion Interface Reference
Returns the approximate HIP api version. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipctxgetapiversion_ (ctx, apiversion) |
Detailed Description
Returns the approximate HIP api version.
- Parameters
-
[in] ctx Context to check [Deprecated] [out] apiVersion API version to get
- Returns
hipSuccess
- Warning
- The HIP feature set does not correspond to an exact CUDA SDK api revision. This function always set *apiVersion 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 api revision number here and should use arch feature flags to test device capabilities or conditional compilation.
- See also
- hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
- Warning
- This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
Member Function/Subroutine Documentation
◆ hipctxgetapiversion_()
| integer(kind(hipsuccess)) function hipfort::hipctxgetapiversion::hipctxgetapiversion_ | ( | type(c_ptr), value | ctx, |
| integer(c_int) | apiversion | ||
| ) |
The documentation for this interface was generated from the following file: