Skip to content

Complete Epic 114 safe CPU dispatch#62

Merged
rsasaki0109 merged 1 commit into
mainfrom
agent/epic114-safe-cpu-dispatch
Jul 16, 2026
Merged

Complete Epic 114 safe CPU dispatch#62
rsasaki0109 merged 1 commit into
mainfrom
agent/epic114-safe-cpu-dispatch

Conversation

@rsasaki0109

Copy link
Copy Markdown
Owner

Summary

  • centralize deterministic CPU scheduling thresholds, row tiles, and worker bounds for vision kernels
  • share packed one/three-channel u8 fast-path selection while retaining generic channel/stride fallbacks
  • apply the policy to resize, preprocessing, Gaussian, Sobel, morphology, and Canny execution
  • close Epic 114 with deterministic dispatch tests and a worker/scratch ownership receipt

Impact

Small images stay scalar, large work uses bounded existing pools, and packed specializations remain conditional on exact channel and stride contracts. Public APIs, numerical contracts, CPU/GPU transfer behavior, and the SpatialRust 1.1.0 version are unchanged.

Validation

  • cargo test -p spatialrust-vision --no-default-features --features full (139 unit + 13 property tests)
  • cargo clippy --workspace --all-targets -- -D warnings (Rust 1.97.0)
  • cargo clippy --workspace --all-features --lib -- -D warnings (Rust 1.97.0)
  • RUSTFLAGS="-D warnings" cargo test --workspace --no-run
  • cargo fmt --all --check
  • git diff --check

@rsasaki0109
rsasaki0109 merged commit 951d7db into main Jul 16, 2026
88 checks passed
@rsasaki0109
rsasaki0109 deleted the agent/epic114-safe-cpu-dispatch branch July 16, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant