Independent opt-in Rust CUDA Driver resource library; source foundation for STRA-102. No production serving integration or advertised model support.
Fixed 12-symbol Linux64 Driver ABI loaded from libcuda.so.1; no Strata/CUDA Toolkit/native C build dependency in this crate. Default feature disabled; isolated private unsafe boundary, existing workspace forbid unchanged.
Borrowed thread-confined driver/context/buffers, guarded context restoration, byte budget and exact copy shapes, staged synchronized copies, fallible cleanup. Ambiguous completion poisons the context and retains bounded staging; failed destruction retains the library.
Existing CPU checks retained and new crate + isolated mock gate added.
Verification
Mac arm64 Rust1.99.0: default 2 tests, enabled unsupported-platform 2 tests, all-target/all-feature Clippy with warnings denied and fmt pass.
Native GNU/Linux aarch64 CPU Docker: 33 synthetic ELF subprocess scenarios, 10 compile refusals for owner lifetimes and Send/Sync, 2 default-denial/unit tests, actual enabled FFI Clippy/fmt pass. Exact crate sources staged with pinned libc; Strata/control-plane/CUDA Toolkit/installed driver absent, network off, nonroot, zero capabilities/devices. Delayed HtoD/DtoH checks exercise owned host staging on failure. Independent TL review ACCEPT. Own containers/derived images/targets/traces removed; shared base/cache retained.
Official pinned CUDA13.0.88 cuda.h confirms legacy three-argument cuCtxCreate_v2, distinct from latest v4 public alias. Requirements, pins, hashes and limits: docs/cuda-driver-bootstrap.md.
Remaining gates
Installed-driver execution, GPU kernels, model forward/quality/paired performance/rollback and current static musl CLI integration remain unqualified. A fully static musl binary cannot simply dlopen this driver; this PR proves GNU/Linux mock behavior only. Exact-head hosted CI pending. No GPU runtime or user-agent data accessed; no merge.
admin
changed title from STRA-102: independent CUDA Driver context and buffers to WIP: STRA-102 independent CUDA Driver context and buffers2026-10-07 21:10:41 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Scope
Independent opt-in Rust CUDA Driver resource library; source foundation for STRA-102. No production serving integration or advertised model support.
Verification
Mac arm64 Rust1.99.0: default 2 tests, enabled unsupported-platform 2 tests, all-target/all-feature Clippy with warnings denied and fmt pass.
Native GNU/Linux aarch64 CPU Docker: 33 synthetic ELF subprocess scenarios, 10 compile refusals for owner lifetimes and Send/Sync, 2 default-denial/unit tests, actual enabled FFI Clippy/fmt pass. Exact crate sources staged with pinned libc; Strata/control-plane/CUDA Toolkit/installed driver absent, network off, nonroot, zero capabilities/devices. Delayed HtoD/DtoH checks exercise owned host staging on failure. Independent TL review ACCEPT. Own containers/derived images/targets/traces removed; shared base/cache retained.
Official pinned CUDA13.0.88 cuda.h confirms legacy three-argument cuCtxCreate_v2, distinct from latest v4 public alias. Requirements, pins, hashes and limits: docs/cuda-driver-bootstrap.md.
Remaining gates
Installed-driver execution, GPU kernels, model forward/quality/paired performance/rollback and current static musl CLI integration remain unqualified. A fully static musl binary cannot simply dlopen this driver; this PR proves GNU/Linux mock behavior only. Exact-head hosted CI pending. No GPU runtime or user-agent data accessed; no merge.
Stacked on PR #12.
STRA-102: independent CUDA Driver context and buffersto WIP: STRA-102 independent CUDA Driver context and buffersPull request closed