XPU native library with SYCL USM paged memory support.
| 116 | |
| 117 | |
| 118 | class 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 | |
| 127 | def _split_cuda_version(compact: str, is_hip: bool) -> tuple[int, int]: |
no outgoing calls
no test coverage detected