Skip to content

Commit ccc645d

Browse files
committed
fix lib
Signed-off-by: jiqing-feng <[email protected]>
1 parent 343bfd5 commit ccc645d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitsandbytes/cextension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ def get_native_library() -> BNBNativeLibrary:
299299

300300
try:
301301
if hasattr(torch, "xpu") and torch.xpu.is_available():
302-
if not (ipex_cpu or ipex_xpu):
302+
if not ipex_xpu:
303303
logger.warning(
304304
"Detected Intel XPU but no Intel Extension for PyTorch (IPEX) installed. "
305305
"IPEX is recommended for Intel XPU support in bitsandbytes to get better performance. "
306306
"Please check the installation doc to install `intel_extension_for_pytorch`. "
307307
)
308-
lib = ErrorHandlerMockBNBNativeLibrary("XPU does not need native library")
308+
lib = None
309309
else:
310310
lib = get_native_library()
311311
except Exception as e:

0 commit comments

Comments
 (0)