Expand description
DLPack interop for zero-copy GPU exchange.
This module provides a minimal DLPack implementation for exporting XLOG GPU buffers to other ecosystems (e.g., Python cuDF) without device↔host copies.
Structs§
- DLData
Type - DLDevice
- DLManaged
Tensor - DLTensor
- Dlpack
Managed Tensor - Owned DLPack tensor handle.
- Dlpack
Table - A table-like wrapper that can export individual columns as DLPack tensors without copies.
Constants§
Functions§
- export_
slice_ managed_ tensor - Export an xlog-owned runtime-backed slice as a 2-D DLPack managed
tensor without copies. The manager context holds the slice’s
Arc, so the export shares the exact producer allocation and the memory stays alive until the consumer’s deleter runs; xlog remains the owner throughout. The declaredrows x cols x dtypeview must cover the allocation exactly — a mismatched shape is a typed error, never a truncated or padded view.