We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c059bd2 commit 7b39a55Copy full SHA for 7b39a55
bitsandbytes/cuda_setup/main.py
@@ -143,7 +143,14 @@ def evaluate_cuda_setup():
143
cuda_setup.add_log_entry(f'CUDA SETUP: Detected CUDA version {cuda_version_string}')
144
145
# 7.5 is the minimum CC vor cublaslt
146
- has_cublaslt = cc in ["7.5", "8.0", "8.6"]
+ has_cublaslt = False
147
+ if cc is not None:
148
+ cc_major, cc_minor = cc.split('.')
149
+ if int(cc_major) < 7 or (int(cc_major) == 7 and int(cc_minor) < 5):
150
+ failure = True
151
+ cuda_setup.add_log_entry("WARNING: Compute capability < 7.5 detected! Proceeding to load CPU-only library...", is_warning=True)
152
+ else:
153
+ has_cublaslt = True
154
155
# TODO:
156
# (1) CUDA missing cases (no CUDA installed by CUDA driver (nvidia-smi accessible)
0 commit comments