Repository navigation
fix(gpu): remove "cpu" gpu_type branch from persona/allocator - #999
Merged
Merged
Conversation
…gpu_type Per #964-series GPU-fallback audit + Joel's "lack of GPU integration is forbidden" rule. PR #998 made memory_manager::detect_gpu() panic when no GPU is found, so a "cpu" gpu_name can never reach detect_gpu_type in production. Removing the branch cleans up the dead path. If somehow a "cpu" gpu_name still arrives (e.g. a test stub), it now falls back to the OS-default GPU type ("metal" on Mac, "cuda" on Linux) — a best-guess that lets the caller proceed against a real GPU subsystem rather than configuring a non-existent "cpu" subsystem that no inference path actually serves. Test updated: - assert_eq!(detect_gpu_type("CPU"), "cpu") removed - replaced with cfg-gated assertions matching new OS-default behaviour - real GPU detections (NVIDIA, Apple M-series) unchanged cargo test --features metal,accelerate --lib persona::allocator:: tests::test_detect_gpu_type: PASS. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GPU-fallback audit follow-up to #998. Removes the "cpu" branch from detect_gpu_type — unreachable post-#998 since memory_manager panics on no-GPU. Tests updated.
🤖 Generated with Claude Code