fix: Respect native Orin CUDA architecture and CuTe link requirements - #118
Open
suharvest wants to merge 2 commits into
Open
fix: Respect native Orin CUDA architecture and CuTe link requirements#118suharvest wants to merge 2 commits into
suharvest wants to merge 2 commits into
Conversation
|
+1, this fixes jetson AGX orin build for me (jp 6.2.1) |
Signed-off-by: suharvest <suharvest@gmail.com>
Signed-off-by: suharvest <suharvest@gmail.com>
suharvest
force-pushed
the
pr/jetson-build-compat
branch
from
July 25, 2026 11:25
29d18b7 to
b406116
Compare
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 does this PR do?
Fixes the two CMake propagation issues reported in #117 that block a native
Jetson Orin build with JetPack 6 / CUDA 12.6:
CMAKE_CUDA_ARCHITECTURESbeforeproject()enables CUDA, so the project default no longer replaces-DCMAKE_CUDA_ARCHITECTURES=87.shim with
PUBLICscope and the CUDA 12.0–12.6-Wl,--wrap=_cudaLaunchKernelExoption withINTERFACEscope. The existingbehavior for non-static targets is unchanged.
This branch has been rebuilt on the current v0.9.1
main(
7f061f21f0a581ba234a1e233c9315b89d8e47d6). The v0.8-era patch was notblindly rebased because
cmake/CuteDsl.cmakechanged substantially in v0.9.1.Scope
CUDA_DRIVER_LIBremainsPRIVATE; this PR does not expand its transitivelink scope.
their existing behavior.
Validation
toolchain architecture selection.
cmake/CuteDsl.cmakeverifies that astatic consumer exposes the CuTe archive and shim through
INTERFACE_LINK_LIBRARIES, and exposes--wrap=_cudaLaunchKernelExthroughINTERFACE_LINK_OPTIONS.CUDA_DRIVER_LIBremains private.git diff --checkpasses.mainis clean.A native Orin build and the repository-wide pre-commit suite were not rerun on
the machine used for this v0.9.1 rebase because it has no CUDA/Jetson toolchain
or repository
pre-commitenvironment. CI or Jetson validation is thereforestill requested.
Closes #117.