Add NVCC path and Python version to show_config
@@ -144,6 +144,11 @@ class _RuntimeInfo(object):
else:
self.cuda_path = cupy._environment.get_rocm_path()
+ if not is_hip:
+ self.nvcc_path = cupy._environment.get_nvcc_path()
+ else:
+ self.nvcc_path = cupy._environment.get_hipcc_path()
+
self.cuda_build_version = cupy.cuda.driver.get_build_version()
self.cuda_driver_version = _eval_or_error(
cupy.cuda.runtime.driverGetVersion,
@@ -215,6 +220,7 @@ class _RuntimeInfo(object):
('CuPy Version', self.cupy_version),
('NumPy Version', self.numpy_version),
('SciPy Version', self.scipy_version),
+ ('Python Version', platform.python_version()),
('Cython Build Version', self.cython_build_version),
('Cython Runtime Version', self.cython_version),
('CUDA Root', self.cuda_path),
@@ -225,6 +231,11 @@ class _RuntimeInfo(object):
('CUDA Runtime Version', self.cuda_runtime_version),
]
+ compiler_name = 'hipcc' if is_hip else 'NVCC'
+ records += [
+ (f'{compiler_name} PATH', self.nvcc_path)
+ ]
+
records += [
('cuBLAS Version', self.cublas_version),
('cuFFT Version', self.cufft_version),
