Repository navigation
fix(cli): say when a ! program builds for the CPU because no CUDA toolkit was found - #1888
Merged
Merged
Conversation
…lkit was found (#1863) On Linux, a program with ! and no include/nvrtc.h under $CUDA_HOME, $CUDA_PATH, /usr/local/cuda or /opt/cuda built silently for the CPU lane. cli_build now prints one line to stderr and builds as before. Co-Authored-By: Claude Opus 5.5 <[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.
Fixes #1863
On Linux, a program with
!and no CUDA toolkit (noinclude/nvrtc.hunder$CUDA_HOME,$CUDA_PATH,/usr/local/cudaor/opt/cuda) built with exit 0 for the CPU lane, and nothing said so.cli_buildnow prints one line to stderr and builds as before:The change is a notice only, so existing CPU-only builds keep working. macOS always builds the Metal lane and never prints it.
Checks
!program prints the line, builds with exit 0 and runs (1024); the same program without!prints nothing.!program builds with no notice.bun gates/repo.ts: PASS 54/54.cli_build,bangsis then true and the notice is skipped).🤖 Generated with Claude Code