From 58aa7c53f679a30e05da57939ed72a7512c854c6 Mon Sep 17 00:00:00 2001 From: Tom Aarsen Date: Thu, 15 Sep 2022 12:44:09 +0200 Subject: Perform check using implicit list length Instead of 'ccs is not None', as ccs is always a list, so this if is currently always True --- bitsandbytes/cuda_setup/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitsandbytes/cuda_setup/main.py') diff --git a/bitsandbytes/cuda_setup/main.py b/bitsandbytes/cuda_setup/main.py index 78a2844..f11b430 100644 --- a/bitsandbytes/cuda_setup/main.py +++ b/bitsandbytes/cuda_setup/main.py @@ -103,7 +103,7 @@ def get_compute_capability(cuda): None. """ ccs = get_compute_capabilities(cuda) - if ccs is not None: + if ccs: # TODO: handle different compute capabilities; for now, take the max return ccs[-1] return None -- cgit v1.2.3