WIP: STRA-102 independent CUDA Driver context and buffers #13

Closed
admin wants to merge 2 commits from codex/stra102-cuda-driver-bootstrap into codex/stra102-rust-iq2s-iq3xxs
Owner

Scope

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.

Stacked on PR #12.

## Scope 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. Stacked on PR #12.
admin added 1 commit 2026-10-07 21:10:25 +00:00
STRA-102 implement independent CUDA Driver context and buffers
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / verify (pull_request) Failing after 42s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-static-cli (pull_request) Skipped
Linux / linux-cli-container (pull_request) Skipped
Linux / release-cli (pull_request) Skipped
7e61ab8007
admin changed title from STRA-102: independent CUDA Driver context and buffers to WIP: STRA-102 independent CUDA Driver context and buffers 2026-10-07 21:10:41 +00:00
admin added 1 commit 2026-10-07 21:13:14 +00:00
STRA-102 install Docker for isolated driver mock CI gate
Linux / release-cli (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 2m27s
Linux / linux-static-cli (pull_request) Successful in 5m47s
Linux / verify (pull_request) Successful in 4m14s
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Desktop foundation / core (ubuntu-latest) (push) Failing after 4s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
0383253c60
admin closed this pull request 2026-11-22 17:09:56 +00:00
admin deleted branch codex/stra102-cuda-driver-bootstrap 2026-11-22 17:09:56 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: para/leleka#13