Skip to content

Commit 7b39a55

Browse files
committed
Fix issue #97
1 parent c059bd2 commit 7b39a55

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bitsandbytes/cuda_setup/main.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,14 @@ def evaluate_cuda_setup():
143143
cuda_setup.add_log_entry(f'CUDA SETUP: Detected CUDA version {cuda_version_string}')
144144

145145
# 7.5 is the minimum CC vor cublaslt
146-
has_cublaslt = cc in ["7.5", "8.0", "8.6"]
146+
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
147154

148155
# TODO:
149156
# (1) CUDA missing cases (no CUDA installed by CUDA driver (nvidia-smi accessible)

0 commit comments

Comments
 (0)