Get CUDA/HIP version as a string.
()
| 44 | |
| 45 | |
| 46 | def get_cuda_version_string() -> Optional[str]: |
| 47 | """Get CUDA/HIP version as a string.""" |
| 48 | version_tuple = get_cuda_version_tuple() |
| 49 | if version_tuple is None: |
| 50 | return None |
| 51 | major, minor = version_tuple |
| 52 | return f"{major}{minor}" |
| 53 | |
| 54 | |
| 55 | def get_cuda_specs() -> Optional[CUDASpecs]: |
no test coverage detected