MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / XpuBNBNativeLibrary

Class XpuBNBNativeLibrary

bitsandbytes/cextension.py:118–124  ·  view source on GitHub ↗

XPU native library with SYCL USM paged memory support.

Source from the content-addressed store, hash-verified

116
117
118class XpuBNBNativeLibrary(BNBNativeLibrary):
119 """XPU native library with SYCL USM paged memory support."""
120
121 def __init__(self, lib: ct.CDLL):
122 super().__init__(lib)
123 if hasattr(lib, "cget_managed_ptr"):
124 lib.cget_managed_ptr.restype = ct.c_void_p
125
126
127def _split_cuda_version(compact: str, is_hip: bool) -> tuple[int, int]:

Callers 1

get_native_libraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected