From c618b19b8f83e2bc801a9d4cbbd3566d6f573904 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 24 Jan 2024 14:44:23 +0200 Subject: [PATCH] Fix B018 (useless expression) --- bitsandbytes/cextension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitsandbytes/cextension.py b/bitsandbytes/cextension.py index 327c97b03..858365f02 100644 --- a/bitsandbytes/cextension.py +++ b/bitsandbytes/cextension.py @@ -22,7 +22,7 @@ Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues''') - lib.cadam32bit_grad_fp32 # runs on an error if the library could not be found -> COMPILED_WITH_CUDA=False + _ = lib.cadam32bit_grad_fp32 # runs on an error if the library could not be found -> COMPILED_WITH_CUDA=False lib.get_context.restype = ct.c_void_p lib.get_cusparse.restype = ct.c_void_p lib.cget_managed_ptr.restype = ct.c_void_p