[Docs] Document CUDA_ARCH_NAME=Manual and CUDA_ARCH_BIN in runtime FAQ - #574
Open
mahmoudshehata74 wants to merge 1 commit into
Open
[Docs] Document CUDA_ARCH_NAME=Manual and CUDA_ARCH_BIN in runtime FAQ#574mahmoudshehata74 wants to merge 1 commit into
mahmoudshehata74 wants to merge 1 commit into
Conversation
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.
What
Expands the answer to the
no kernel image is available for execution on the deviceFAQ entry with:
CUDA_ARCH_NAME=Manual+CUDA_ARCH_BIN, which is currently undocumentedWhy
The current answer suggests
CUDA_ARCH_NAME=Allor named architectures(Turing, Volta, Pascal).
Allbuilds every supported architecture and addssignificant build time, and the named examples predate Ampere.
CUDA_ARCH_NAME=ManualwithCUDA_ARCH_BINlets users target exactly thearchitectures they need, but it appears neither in this FAQ nor in the CMake
option tables of the source-compile guides.
The ordering caveat matters in practice: if
CUDA_ARCH_NAME=Manualdoes notprecede
CUDA_ARCH_BIN, the architecture list is silently ignored and the buildcompletes without the requested kernels — a failure only discovered at runtime.
The
cuobjdumpverification turns a multi-hour failure into a one-minute check.Context
Encountered while building the C++ inference library for an RTX 5060 (sm_120).
Verified on Ubuntu 24.04, CUDA 13.0, Paddle v3.3.0 — the resulting library
contains both
sm_89andsm_120.Related discussion: PaddlePaddle/Paddle#79725