Detect CUDA in sweep skills and exercise GPU paths when available#1497
Merged
brendancol merged 1 commit intomainfrom May 6, 2026
Merged
Detect CUDA in sweep skills and exercise GPU paths when available#1497brendancol merged 1 commit intomainfrom
brendancol merged 1 commit intomainfrom
Conversation
Each sweep skill now probes the host with `numba.cuda.is_available()` before dispatching subagents and passes a `CUDA_AVAILABLE` flag into the agent prompt. On a CUDA host, subagents run cupy and dask+cupy backends end-to-end during audit and /rockout verification. On a CPU-only host, they fall back to static review and tag the state CSV with `cuda-unavailable` so a future re-run on a GPU host knows to re-validate the GPU paths.
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.
Summary
sweep-accuracy,sweep-api-consistency,sweep-metadata,sweep-performance,sweep-security,sweep-test-coverage) now probes the host withnumba.cuda.is_available()before dispatching subagents and passes aCUDA_AVAILABLEflag into the agent prompt./rockoutverification. Each sweep gets a tailored block — accuracy runs the kernel on small inputs, performance times the GPU path, security tests adversarial shapes, metadata checks attrs/coords/dims on cupy DataArrays, api-consistency smoke-tests cupy entry points, and test-coverage requires new cupy tests to execute locally.notescolumn withcuda-unavailableso a future re-run on a GPU host knows to re-validate the GPU paths.Test plan
/sweep-performance --top 1on a CUDA host; confirm the dispatched subagent receivesCUDA_AVAILABLE=trueand exercises the cupy pathcuda-unavailablenote