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

Function get_cuda_version

imperative/python/megengine/device.py:307–313  ·  view source on GitHub ↗

r"""Gets the CUDA version used when compiling MegEngine. Returns: a version number, indicating `CUDA_VERSION_MAJOR * 1000 + CUDA_VERSION_MINOR * 10`.

()

Source from the content-addressed store, hash-verified

305
306
307def get_cuda_version():
308 r"""Gets the CUDA version used when compiling MegEngine.
309
310 Returns:
311 a version number, indicating `CUDA_VERSION_MAJOR * 1000 + CUDA_VERSION_MINOR * 10`.
312 """
313 return _get_cuda_version()
314
315
316def get_cudnn_version():

Callers 1

init_commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected