Skip to main content

Crate xlog_cuda

Crate xlog_cuda 

Source
Expand description

GPU kernel provider for XLOG

Re-exports§

pub use arrow_device::ArrowDeviceArray;
pub use arrow_device::ArrowDeviceArrayOwned;
pub use arrow_device::ARROW_DEVICE_CUDA;
pub use cuda_compat::AsKernelParam;
pub use cuda_compat::CudaFunction;
pub use cuda_compat::IntoKernelParamStorage;
pub use cuda_compat::KernelParamStorage;
pub use cuda_compat::KernelScalar;
pub use cuda_compat::LaunchAsync;
pub use device::CudaDevice;
pub use device_pool::GpuDevicePool;
pub use dlpack::DLManagedTensor;
pub use dlpack::DlpackManagedTensor;
pub use dlpack::DlpackTable;
pub use joint_constraint::CarrierBufferId;
pub use joint_constraint::CarrierError;
pub use joint_constraint::CarrierExport;
pub use joint_constraint::JointConstraintCarrier;
pub use joint_solver::Component;
pub use joint_solver::ConstraintGraph;
pub use joint_solver::Feasibility;
pub use joint_solver::FuelMeter;
pub use joint_solver::SolveStrategy;
pub use joint_solver::SolverError;
pub use joint_solver::SOLVER_ABI_IDENTITY;
pub use memory::CudaBuffer;
pub use memory::CudaColumn;
pub use memory::GpuMemoryManager;
pub use memory::RuntimeAllocBlock;
pub use multi_gpu_memory::MultiGpuMemoryManager;
pub use provider::circuit_kernels;
pub use provider::dedup_kernels;
pub use provider::filter_kernels;
pub use provider::groupby_kernels;
pub use provider::ilp_kernels;
pub use provider::join_kernels;
pub use provider::pack_kernels;
pub use provider::pir_kernels;
pub use provider::scan_kernels;
pub use provider::set_ops_kernels;
pub use provider::sort_kernels;
pub use provider::CompareOp;
pub use provider::CudaKernelProvider;
pub use provider::CudaProviderBuilder;
pub use provider::FjDeltaCols;
pub use provider::FjNode;
pub use provider::FjPlan;
pub use provider::FjSubAtom;
pub use provider::IlpExactNaryPatterns;
pub use provider::IlpExactNaryRequest;
pub use provider::JoinIndexV2;
pub use provider::JoinType;
pub use provider::CIRCUIT_MODULE;
pub use provider::DEDUP_MODULE;
pub use provider::GROUPBY_MODULE;
pub use provider::ILP_MODULE;
pub use provider::JOIN_MODULE;
pub use provider::PACK_MODULE;
pub use provider::PIR_MODULE;
pub use provider::SCAN_MODULE;
pub use provider::SET_OPS_MODULE;
pub use provider::SORT_MODULE;
pub use wcoj_metadata::HeatDist;
pub use wcoj_metadata::LayoutSignature;
pub use wcoj_metadata::RootMetadata;
pub use wcoj_metadata::VertexId;
pub use wcoj_metadata::WcojCycle4HgWorkPlanU32;
pub use wcoj_metadata::WcojCycle4HgWorkPlanU64;
pub use wcoj_metadata::WcojRelationMetadata;
pub use wcoj_metadata::WcojTriangleHgWorkPlanU32;
pub use wcoj_metadata::WcojTriangleHgWorkPlanU64;

Modules§

arrow_device
cuda_compat
cuda_graph
CUDA Graph RAII helpers for production graph capture/replay.
device
CUDA device management
device_pool
Multi-GPU device pool management
device_runtime
Stream-ordered device memory runtime.
dlpack
DLPack interop for zero-copy GPU exchange.
joint_constraint
Joint constraint carrier: buffer ownership, registration, and the device-resident label-feasibility solve stage.
joint_solver
Joint constraint solver — skeleton: deterministic component decomposition, pinned-width envelope, and typed fuel accounting.
kernel_manifest_data
launch
Owner-bearing access recorder for one CUDA launch.
memory
CUDA memory management
multi_gpu_memory
Multi-GPU memory management
provider
CUDA kernel provider implementation
sys
type_seam
GpuScalar — marker trait for Rust scalar types that round-trip through GPU column storage.
wcoj_metadata

Structs§

CudaSlice
Vec<T> on a cuda device. You can allocate and modify this with CudaStream.
CudaStream
A wrapper around sys::CUstream that you can schedule work on.
CudaView
&[T] on a cuda device. An immutable sub-view into a CudaSlice created by CudaSlice::as_view()/CudaSlice::slice().
CudaViewMut
&mut [T] on a cuda device. A mutable sub-view into a CudaSlice created by CudaSlice::as_view_mut()/CudaSlice::slice_mut().
DriverError
Wrapper around sys::CUresult. See nvidia’s CUresult docs
Identity256
Canonical 256-bit identity, preserving byte order without native-word conversion.
LaunchConfig
Configuration for [result::launch_kernel]
SemanticActionCatalogue
The sole built-in action law; both Rust and CUDA are generated from its declaration.
SemanticActiveRow
Identity of one packed active-cache row in its original forward. Kinds are FILLED=1, MASK=2 and FEEDBACK=3; physical_row is not the packed coordinate.
SemanticActiveRows
Acquired bank-local active-cache state. A computed empty result has no rows but is distinct from the initial parent which has never consumed a forward.
SemanticAdmission
Immutable typed content and identities held by one graph for one acquired base.
SemanticAdmissionLimits
Aggregate cold-input limits, checked before copying symbols or allocating views.
SemanticAdmissionRecords
Cold input transferred into the semantic owner’s immutable admission.
SemanticCatalogueBinding
SemanticCatalogueField
Field codebook role and NULL-only cold cardinality in this catalogue.
SemanticCatalogueSignature
Declarative action/opcode signature, including dependent opcode selection.
SemanticCheckpointNativeProjection
Read-only identity projected from one fully validated original publication material.
SemanticComponent
One row of the generated roster. Text fields are text positions; edit fields index the eighteen-field action signature. Offsets count input elements.
SemanticComponentInput
Cold-bound FP32 logits and binary product support in original category order.
SemanticContinuationInput
Original model outputs for one acquired parent. The Session supplies their instance, publication word, task and generation binding from its real lease.
SemanticExtents
Exact reachable logical extents.
SemanticFeedback
Features, validity and current causal provenance from one acquired bank. Original outputs retain their step independently of later bank retirement.
SemanticFeedbackRecordMaterial
Original non-tensor feedback material from a completed acquired step. identity is its native range seal, not SHA-256 of bytes alone. Raw slots (role 15), statement bytes (16) and provenance records (17) stay separate; encoded feature tensors are not a replacement for any of these records.
SemanticFeedbackSchema
Value-independent flat coordinates emitted by the native feedback producer.
SemanticForkHandle
SemanticGradientDeliveryBinding
Retained original tensor producers for one prepared bank’s autograd delivery boundary. The binding owns the consumed DLPack records until the Python-side delivery owner is retired; it grants no publication authority.
SemanticHypergraph
Device-resident immutable-root semantic owner retaining its provider.
SemanticHypergraphCapacities
Checked fixed capacities for one resident semantic graph.
SemanticHypergraphExecutionStats
Production-path execution counters.
SemanticInitialPrefillContentWitness
Exact content captured by one imported task’s original model prefill. This handle never creates a new baseline during verification.
SemanticInitialPrefillLease
Opaque handle to the single imported-task prefill stage. This is not a model-forward receipt; the actual input and outputs must be joined before the parent can be published.
SemanticInitialSourceLayout
Initial source geometry issued from the admitted observation mapping before the model computes its prefix cache. The rows retain zero provenance indices; parent binding constructs and verifies the private ledger after prefill.
SemanticInsertedSupport
Complete result of inserting a new support event.
SemanticLearningPhaseRecord
Retained evidence for one actual native cold phase change. Ordinary Update and restore preserve this history; neither can reset the cumulative progress.
SemanticLearningPhaseTransition
A transition request, not an assertion that a scientific criterion passed. The privileged Controller supplies its original signed, durably read-back Admission, separately from checking original data-use grants. This is permission for private work, never a claim that the scientific comparison passed.
SemanticModelContext
Model metadata projected from one acquired publication, not supplied by the model. Content identities grant no authority independently of that reader.
SemanticModelContractLayout
Byte spans in the producer’s one ModelContract record. The native owner hashes the immutable schema bytes without interpreting their format, then binds them to the actual model generation and device numerical identity. Digest fields are raw 32 bytes; generation is an unaligned little-endian u64.
SemanticModelForwardWitness
Opaque proof that the native receipt node for one exact logits occurrence was inserted while its model producer’s prepared bank capture was active.
SemanticModelMemory
Full producer-owned backing buffers and their independent storage/view map. Allocation inputs are contiguous U8 vectors with role zero and ordinal index. Tensor and version-counter identities remain in the opaque model contract.
SemanticModelStorage
A producer-declared storage object within one complete backing allocation. Storage identity is its ordinal, not an address or a tensor version counter.
SemanticModelView
A typed publication coordinate within a producer-declared storage object.
SemanticObservedSource
An observed token payload admitted by the trusted application controller. origin retains the complete source/manifest/transformation record, not an independently supplied native digest or a model-generated provenance row.
SemanticOutputIntent
Read-only delivery material from a sealed publication. Reading an intent neither proves that the checkpoint was durably committed nor grants authority to perform its external effect.
SemanticParentBinding
Initial canonical parent only. A model continuation cannot be supplied here: it is admitted after a real Acquire and a forward using that acquired parent. PrefixIdentity is native-owned: fresh publication derives its 32 bytes from the actual PrefixSource. Supplying a caller record for that role is an error.
SemanticPolicyFieldLayout
FP32 element ranges for one field in the native policy parameter snapshot. NULL is a category, but has no stored embedding row. The action-class field has no NULL: its category zero is the trainable no-edit action.
SemanticPolicyLayout
Packing of the immutable policy inputs consumed by the serial component loop. These ranges describe storage, not authority to substitute a model generation. A session derives the layout from its retained admission’s actual codebooks.
SemanticPredicateRecord
A predicate and its complete existing XLOG schema, not a caller-supplied digest.
SemanticPreparedStep
A fixed future step issued by its Session during cold segment construction. It owns no host publication identity; its actual parent is acquired on device.
SemanticProgramAdmission
Exact initial program and input facts prepared before a resident task starts.
SemanticProgramFact
One typed binary tuple. Predicate indices come from the admitted declaration order.
SemanticProgramRule
One range-restricted positive rule with one or two binary body atoms. Equal variable indices encode repeated-variable equalities.
SemanticPublicationInputProjection
Read-only original inputs projected through the complete publication codec. These content records are not proof of historical execution or use authority.
SemanticPublicationTensorProjection
Original cache geometry and logical bytes under the native tensor seal. Logical bytes exclude stride gaps and unused capacity, exactly as the seal does.
SemanticPublishedIdentity
Actual device-validated publication identity. This identifies content and lineage; it is not a use-authority token or an externally issuable lease.
SemanticPublishedLease
An actual device-acquired reader. Only its originating Session can inspect, export or release it; it is neither cloneable nor externally constructible.
SemanticReplayMaterial
Owned cold replay inputs: complete predecessor material and the successor’s external native publication evidence. Hash consistency does not establish historical execution, current rights, or permission to use a model.
SemanticResidentModelMemory
Direct read-only aliases of the selected resident neural bank. Each backing allocation is exported exactly once; storages, views and layouts preserve the producer’s original alias geometry. The acquired reader remains the use owner and therefore prevents reuse of this physical bank through final use.
SemanticRngBinding
SemanticRootDigest
Content digest of an immutable semantic root.
SemanticRootHandle
SemanticRootSnapshot
Immutable device-derived root receipt.
SemanticSegmentColdCapacity
Frozen bounds for the content, work, and external allocations currently admitted during prepared-segment construction. Numerical-domain buffers require their own native-derived extension before the full peak is claimed.
SemanticSelectedTrainingView
Retained native result of device selection. The views are fixed-capacity CUDA ports; the resident selection record supplies their logical extent.
SemanticSourceMapping
A token is selected only by offset into its admitted observed payload.
SemanticStateRecord
One actual canonical control record or queue payload retained by a parent. Mutable queue capacity is explicit; bytes contain the real encoded header and entries, including an empty queue’s header rather than an invented state.
SemanticStatementHandle
SemanticStatementIdentity
Content identity of a semantic statement.
SemanticStatementKey
Canonical, identity-bearing statement key.
SemanticStatementRef
Statement identity paired with its opaque physical handle.
SemanticStructuralCostDescriptor
Task-independent unit and finite cap for native structural work. The unit names the versioned counting law and the resident program mode, not the authority, task identity, or outcome of a sampled candidate.
SemanticSupportEvent
One provenance-bearing support event. Presence is exactly one.
SemanticSupportHandle
SemanticSupportIdentity
Content identity of one exact support event.
SemanticSupportRecord
One unit of support and its complete, role-checked record references.
SemanticSupportRef
Support identity paired with its opaque physical handle.
SemanticTaskContentIdentity
Independently recomputable identities of the exact semantic task content. These values carry no use authority. They let retained symbolic training rows bind the ordered query, admitted theory plus executed observer program, and observed four-valued result to the task that the native owner actually executed during cold binding.
SemanticTaskEvaluation
One native evaluation of the fixed base/learned roster. The selector runs only on device; these are the resulting facts, not caller-supplied scores.
SemanticTaskEvaluationSpec
Three ordered query selections for the bounded transition ABI. Predicate, arguments, observer program, eligibility, and scoring are application inputs. This specification carries no authority; only the application controller may attach an authorized task to its retained semantic session.
SemanticTaskFacts
Device-computed facts, using the three actual canonical truth-query results.
SemanticTaskGoalWitness
Native seal of the independently validated goal authority carried by the controller. The semantic root is the exact XLOG root inspected for the task; the remaining roots bind the complete mandatory dependency and constraint closures. These values are derived by the trusted controller after its closure checks, never supplied by the model-update consumer.
SemanticTaskObjectiveLaw
Evaluator interval and objective coefficients frozen by the native task before actions, independently of any future training-group membership.
SemanticTaskObservation
Actual native observer output and the exact source/input/result custody used to derive it. These bytes describe execution; they grant no application rights.
SemanticTaskObservationRoots
Owner-validated cold read coverage for a task’s queried semantic heads. These records grant no use or mutation rights and are not current device query receipts. Runtime feedback must still establish its actual live view.
SemanticTaskPriorityGoal
One normalized truth-match objective within an ordered task priority level. The native query result contributes one when it equals target_truth, zero otherwise; candidate progress subtracts the acquired base’s contribution.
SemanticTaskPriorityLevel
SemanticTaskScoring
Explicit nonnegative coefficients for query agreement and measured work. These coefficients determine the measured value and final return; ordered task priorities, agreement, and cost select the candidate in that order.
SemanticTensorContentWitness
Private device content witness for the exact tensors of one retained parent. Transient witnesses prove stability after capture; model witnesses compare against the originally sealed model baseline. Neither proves computation. The trusted model owner binds the witness to its actual original execution. No digest, device pointer, status, or writable witness storage is exported.
SemanticTensorInput
A genuine producer-owned model tensor and its exact cold model contract. No numeric conversion occurs. Logical intervals describe covered positions; non-positional weights and optimizer state use the explicit interval 0..0.
SemanticTensorLayout
SemanticTextRow
One original compact model row; source_slot is the acquired ring identity, never the packed model coordinate. The row’s array index identifies logits.
SemanticTextSlot
Original active-ring source slot. Kind and provenance are independent: a filled model-input row is not an assertion that the token was observed.
SemanticTokenProvenance
Original token origin projected from the native append-only source ledger. A generated token retains its publication, draw and receipt coordinates; none of these fields independently grants authority or proves publication.
SemanticTrainingCanary
Frozen bounds and resource ceilings for one candidate-update canary.
SemanticTrainingCanaryRecord
SemanticTrainingCanaryRefusalRecord
Device-authored evidence for the highest-precedence failed update canary.
SemanticTrainingDomain
Prospective training domain fixed before any action, not a selected roster or a numerical certificate. The application supplies the original sealed manifests and complete loader geometry; native admission retains them.
SemanticTrainingManifest
Exact sealed input identity and its four admission caps, in source order: entries, total keys, records per input, bytes per record.
SemanticTrainingObjective
Complete frozen objective carried by the canonical replay-roster owner.
SemanticTrainingObjectiveGroup
One nonempty reduction group in the frozen training objective.
SemanticTrainingObjectiveGroupRecord
SemanticTrainingObjectiveRecord
SemanticTrainingRosterRow
Device-written metadata for every row in the selected objective roster.
SemanticTrainingViewLayout
Validated geometry of the bytes consumed by native training-view selection.
SemanticTrainingViewOrigin
Authenticated native execution that produced one episode training view. Corpus anchors have no execution origin and use their independent graph.
SemanticTrainingViewOriginRecord
SemanticTrainingViewRow
One already-admitted training view retained for cold device selection.
SemanticTrainingViewSelection
Device-written selection coordinates. Status zero is the only admissible result; downstream Update work must predicate on this resident word.
SemanticTransitionHostIoStats
Provider counters and explicit session stream waits. Compare snapshots around launch only: cold binding/capture and terminal observation are outside it.
SemanticTransitionLane
Device terminal and both ordered edit results. A refused lane has no root; successful edit receipts preceding rollback are not published graph state.
SemanticTransitionObservation
SemanticTransitionReceipt
Device-produced receipt. Integers use three little-endian 64-bit limbs. The exact probability is p/q; the exact importance factor is p/factor_denominator. Singleton rows canonically use 1/1 for both.
SemanticTransitionSession
Single owner of one serial transition stream, graph, scratch, and receipt bank. Retains the provider independently of the caller’s handle.
SemanticTransitionWork
Work performed by the two semantic edits of one learned candidate. These are device counters, not estimates from the sampled actions or final truth alone.
SemanticTypedRecord
Original typed content. Qualifier indices address this admission’s records.
SemanticVersionHandle
SemanticVersionIdentity
Content identity of an immutable statement version.
SemanticVersionRef
Immutable statement-version identity and device-derived truth.

Enums§

ModelWorkKind
SemanticActionDescriptor
Immutable descriptor meanings derived from the graph’s admitted records. Category zero is NULL. Nonzero categories are sorted by logical typed bytes, independent of arena slots and digests. Equal-valued support records retain separate categories, ordered by their original admission index.
SemanticArgument
One typed argument in a canonical statement identity.
SemanticHandleKind
Kind of opaque semantic handle used in typed diagnostics.
SemanticHypergraphError
Typed failures from semantic owner and device lifecycle validation.
SemanticInsertOutcome
Result of exact support insertion.
SemanticLearningCopyReset
One operation on an explicitly identified typed view. Full backing allocations, including padding, are copied first. No operation may silently change another view, even when the producer deliberately shares its physical storage.
SemanticLearningPhase
SemanticPolarity
Polarity of one exact support event.
SemanticPreparedStepOutcome
Results retain each actual device invocation. An early admission refusal owns no numerical invocation, selected receipts, or derivative authority. Intermediate root records are historical receipts; a later step may retire their slots. Acquire the canonical final reader for the current publication.
SemanticRecordRole
Schema-declared role of a retained typed record.
SemanticStateRole
Semantic role of a retained state range. Indices name actual layers, tensors, or records inside the cold-bound role roster, never arbitrary device pointers.
SemanticTaskRefusal
A task-local refusal is not a semantic infrastructure failure.
SemanticTrainingCanaryKind
Mandatory acceptance gate evaluated from original full-vocabulary logits.
SemanticTrainingCanaryRefusalReason
Closed device reason for refusing a candidate model update canary.
SemanticTrainingObjectiveGroupKind
Frozen evaluator term attached to the complete device-resident training roster.
SemanticTrainingViewBasis
Origin of one authentic replay training view.
SemanticTrainingViewPort
Fixed device port of the native-selected complete training roster.
SemanticTransitionError
SemanticTransitionKind
Admission cost of the next operation, checked against one acquired parent.
SemanticTransitionOutcome
Completed device outcome. A refusal carries no successor, selected-score receipts, or derivative authority; it is not a successful observation.
SemanticTransitionRefusal
Ordinary device refusal after authentic parent and cleanup reconciliation.
SemanticTruth
The four-valued semantic state derived from reachable support events.
SemanticView
A sealed root or one live fork used for device observation.

Constants§

SEMANTIC_FEEDBACK_SUPPORT_FIELDS
Named columns of each current feedback support row. These service values do not enter the learned feature schema. Rows follow newest-to-oldest ancestry.
SEMANTIC_TRAINING_CANARY_EVALUATOR_ABI
SEMANTIC_TRANSITION_COMPONENT_COUNT
SEMANTIC_TRANSITION_GENERATION

Traits§

DevicePtr
Abstraction over CudaSlice/CudaView
DevicePtrMut
Abstraction over CudaSlice/CudaViewMut
DeviceRepr
Something that can be copied to device memory and turned into a parameter for [result::launch_kernel].
DeviceSlice
Base trait for abstracting over CudaSlice/CudaView/CudaViewMut.
SemanticTaskProgram
A native observer executed during cold task binding. Implementations belong to the program executor, not the CUDA substrate. Python accepts executable XLOG source through that executor, never caller-provided answers or receipts. A successful observation must complete all submitted work before returning host results. An error may follow device submission, so the calling session is poisoned and cannot reuse its previous task binding.
ValidAsZeroBits
Marker trait to indicate that the type is valid when all of its bits are set to 0.

Functions§

initial_source_layout
Place the exact admitted tokens into an ordered computed prefix and original 32-row ring. No model cache or publication is claimed by this cold plan. The existing parent bind rechecks the same source mapping and cache geometry.
output_intents_from_publication_material
pending_output_intents_from_publication_material
Resolve the current undelivered set from both sealed native queues. The trusted receiver key authenticates every persisted acknowledgement before any intent is omitted from a restored delivery retry.
semantic_structural_cost_descriptor
The only structural-cost law accepted by a cold training objective.
validate_training_view_layout
Check the original v2 byte layout before either cold admission or device allocation.