MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_cuda_driver_version

Function get_cuda_driver_version

imperative/python/megengine/device.py:334–340  ·  view source on GitHub ↗

r"""Gets the latest version of CUDA supported by the driver. Returns: a supported latest cuda version number, indicating `CUDA_VERSION_MAJOR * 1000 + CUDA_VERSION_MINOR * 10`.

()

Source from the content-addressed store, hash-verified

332
333
334def get_cuda_driver_version():
335 r"""Gets the latest version of CUDA supported by the driver.
336
337 Returns:
338 a supported latest cuda version number, indicating `CUDA_VERSION_MAJOR * 1000 + CUDA_VERSION_MINOR * 10`.
339 """
340 return _get_cuda_driver_version()

Callers 1

init_commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected