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

Class CudaBNBNativeLibrary

bitsandbytes/cextension.py:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109class CudaBNBNativeLibrary(BNBNativeLibrary):
110 compiled_with_cuda = True
111
112 def __init__(self, lib: ct.CDLL):
113 super().__init__(lib)
114 lib.get_context.restype = ct.c_void_p
115 lib.cget_managed_ptr.restype = ct.c_void_p
116
117
118class XpuBNBNativeLibrary(BNBNativeLibrary):

Callers 1

get_native_libraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected