MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / nvcc_version

Function nvcc_version

python/cutlass_cppgen/__init__.py:60–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59_NVCC_VERSION = None
60def nvcc_version():
61 global _NVCC_VERSION
62 if _NVCC_VERSION is None:
63 import subprocess
64
65 # Attempt to get NVCC version
66 result = subprocess.run(['nvcc', '--version'], capture_output=True)
67 if result.returncode != 0:
68 raise Exception('Unable to run `nvcc --version')
69 _NVCC_VERSION = str(result.stdout).split(" release ")[-1].split(",")[0]
70 return _NVCC_VERSION
71
72_CUDA_INSTALL_PATH = None
73def cuda_install_path():

Callers 1

check_cuda_versionsFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected