Skip to content

add cuda 13.2 to jetson arm64 builds (main)#239

Merged
morousg merged 2 commits intomainfrom
238-add-cuda-132-arm64-visa-cuda-compat-oin-main-branch
Mar 27, 2026
Merged

add cuda 13.2 to jetson arm64 builds (main)#239
morousg merged 2 commits intomainfrom
238-add-cuda-132-arm64-visa-cuda-compat-oin-main-branch

Conversation

@albertandaluz
Copy link
Copy Markdown
Member

same as LTS, we add cuda 13.2 to jerson arm64 builds using the compatiblity package until jetpack 7.x is released.

Copilot AI review requested due to automatic review settings March 24, 2026 16:30
@albertandaluz albertandaluz linked an issue Mar 24, 2026 that may be closed by this pull request
@albertandaluz albertandaluz self-assigned this Mar 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the self-hosted GitHub Actions CMake workflows to expand CUDA coverage (notably adding CUDA 13.2 to Jetson/ARM64 builds) and to make runner paths less user-specific.

Changes:

  • Extend the ARM64 matrix to build/test with CUDA 12.9 and 13.2 for both GCC and Clang host compilers.
  • Add an ARM64 workflow LD_LIBRARY_PATH override intended to support CUDA 13.2 compatibility libraries.
  • Replace hard-coded /home/<user>/... CMake path usage with $HOME/... in CI workflows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/cmake-linux-arm64.yml Adds CUDA 13.2 to the ARM64 matrix and introduces CUDA-dependent LD_LIBRARY_PATH / PATH environment setup.
.github/workflows/cmake-linux-amd64.yml Replaces a hard-coded home directory path with $HOME for CMake on x86_64 self-hosted runners.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo "CXX=${{matrix.host_compiler}}" >> "$GITHUB_ENV"

echo "CXX=${{matrix.host_compiler}}" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=/usr/local/${{matrix.cuda_ldpath}}:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting LD_LIBRARY_PATH as "/usr/local/...:$LD_LIBRARY_PATH" can leave a trailing ':' when LD_LIBRARY_PATH is empty/unset, which causes the dynamic linker to also search the current working directory. Please adjust the append logic so an empty LD_LIBRARY_PATH does not introduce an empty path element (for safety and determinism).

Suggested change
echo "LD_LIBRARY_PATH=/usr/local/${{matrix.cuda_ldpath}}:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=/usr/local/${{matrix.cuda_ldpath}}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" >> "$GITHUB_ENV"

Copilot uses AI. Check for mistakes.
Comment on lines 20 to +22
- host_compiler: "g++-11"
cuda_toolkit: "12.9"
cuda_ldpath: "cuda-12.9"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix value cuda_ldpath: "cuda-12.9" expands to /usr/local/cuda-12.9 in LD_LIBRARY_PATH, but CUDA shared libraries are typically under a lib directory (e.g., targets/aarch64-linux/lib / lib64) rather than the toolkit root. If this variable is meant to make runtime linking work, it should point at the directory that actually contains the .so files.

Copilot uses AI. Check for mistakes.
@albertandaluz albertandaluz changed the title addec cuda 13.2 to jetson arm64 builds add cuda 13.2 to jetson arm64 builds (main) Mar 24, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 24, 2026 16:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +31
- host_compiler: "g++-11"
cuda_toolkit: "13.2"
cuda_ldpath: "cuda-13.2/compat_orin"
- host_compiler: "clang++-21"
cuda_toolkit: "13.2"
cuda_ldpath: "cuda-13.2/compat_orin"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cuda_ldpath values point at CUDA install roots (e.g. /usr/local/cuda-12.9 and /usr/local/cuda-13.2/compat_orin). LD_LIBRARY_PATH needs directories that directly contain the shared libraries (commonly .../lib64 or .../targets/aarch64-linux/lib, and for the compatibility package likely a .../lib subdir). As-is, the dynamic loader won’t search subdirectories, so runtime/test steps may fail to locate CUDA libs. Consider changing cuda_ldpath to the actual library directory paths for each toolkit/compat combo.

Copilot uses AI. Check for mistakes.
@morousg morousg merged commit 080531c into main Mar 27, 2026
16 checks passed
@morousg morousg deleted the 238-add-cuda-132-arm64-visa-cuda-compat-oin-main-branch branch March 27, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cuda 13.2 ARM64 visa cuda-compat-oin (main branch)

3 participants