Repository navigation
Conversation
…endlang#1863) The CUDA search order, nvrtc.h as the marker, lib64/lib, the +RTS --gpu-build step, the runtime loader, and that a missing toolkit silently builds the CPU lane (ldd says which lane a binary got). GUIDE.md's Tooling sentence keeps its size under the permanent cap and points at 'bend guide gpu'; GPU.md joins EFFECTS/SHADERS on the allow list.
Collaborator
|
Thanks for writing this up, and for the BendTorch repro. We're closing this one: a new guide page is more than this content needs, and it documents the symptom rather than fixing it. The real problem is that a |
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.
Closes #1863
What
A new
guide/GPU.md(readable asbend guide gpu, the same waybend guide shadersworks) that spells out, in user-facing words, what until now lived only incli_build's comment inbend2/main.ts:$CUDA_HOME,$CUDA_PATH,/usr/local/cuda,/opt/cuda) andinclude/nvrtc.has the marker file; a user-unpacked toolkit works.-DBEND_CUDA=1,-I/-L/-lcuda -lnvrtc(lib64first,libas nix lays them), and the+RTS --gpu-buildrun that writesfile.gpubeside the binary.libcuda.so.1andlibnvrtc.so.13; with an unpacked toolkit,LD_LIBRARY_PATH=$CUDA_HOME/lib64or the binary dies withlibnvrtc.so.13: cannot open shared object file;--gpu off/--gpu 4GB.ldd file | grep -E 'cuda|nvrtc'is how you tell.guide/GUIDE.md's Tooling sentence now points atbend guide gpu(net smaller than before, so GUIDE.md stays under its permanent 8k cap), andGPU.mdjoinsEFFECTS.md/SHADERS.mdongates/repo.ts's allow list, uncapped like them.Checks
bun gates/repo.ts: 54/55 — GUIDE.md back under 8000, GPU.md allowed; the one red file (bendtt.lean64885 > 64000) is pre-existing onmainand untouched here.bend guide gpuprints the new page.cli_builditself (the search list, the marker file, the link flags, the+RTS --gpu-buildstep, the silent fallback) — nothing invented; the failure mode (libnvrtc.so.13: cannot open shared object file) is reproduced in make gpu: libnvrtc.so.13 not found on a lib64 toolkit (LD_LIBRARY_PATH hardcodes lib), and the GPU gate passes on the CPU nuxyel/BendTorch#10 with exact outputs.The optional half of #1863 — having the build itself print one line when it falls back to the CPU — is deliberately not in this PR (it changes compiler output); happy to send it separately if wanted.