cuda.bindings._v2.driver.ctx_get_api_version#
- cuda.bindings._v2.driver.ctx_get_api_version(intptr_t ctx) unsigned int#
Gets the context’s API version.
Returns a version number in
versioncorresponding to the capabilities of the context (e.g. 3010 or 3020), which library developers can use to direct callers to a specific API version. Ifctxis NULL, returns the API version used to create the currently bound context. Note that new API versions are only introduced when context capabilities are changed that break binary compatibility, so the API version and driver version may be different. For example, it is valid for the API version to be 3020 while the driver version is 4020.- Parameters:
ctx (intptr_t) – Context to check.
- Returns:
Pointer to version.
- Return type:
unsigned int
See also
cuCtxGetApiVersion