For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
RowBoundsPtr
struct RowBoundsPtr
Row bounds read from a [rows] int32 device buffer.
Fields
- bounds (
ImmPointer[Int32, ImmUntrackedOrigin]): Device pointer to one int32 bound per row.
Implemented traits
AnyType,
Copyable,
Deinitable,
DevicePassable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
RowBound,
TrivialRegisterPassable
comptime members
device_type
comptime device_type = RowBoundsPtr
Device-side type alias; the struct is trivially device-passable.
Sink
comptime Sink = PlainSink
Selections go to the output buffer unchanged.
Methods
__init__
def __init__(bounds: ImmPointer[Int32, ImmutAnyOrigin]) -> Self
Wraps a device buffer of per-row bounds.
Args:
- bounds (
ImmPointer[Int32, ImmutAnyOrigin]): Device pointer to one int32 bound per row.
row
def row(self, row: Int, out_idxs: MutPointer[Int32, MutAnyOrigin]) -> Tuple[Int, PlainSink]
Returns bounds[row] and a plain sink.
Args:
- row (
Int): Row index within the launch. - out_idxs (
MutPointer[Int32, MutAnyOrigin]): The launch's flat[rows, K]output buffer.
Returns:
Tuple[Int, PlainSink]: The stored bound and a sink over out_idxs.
get_type_name
static def get_type_name() -> String
Returns the type name for runtime diagnostics.
Returns:
String: Always "RowBoundsPtr".