Skip to content

Add install prefix and hostname to CUDA setup script#401

Merged
ZwFink merged 2 commits intomainfrom
fix/setup-cuda-install-prefix
Feb 10, 2026
Merged

Add install prefix and hostname to CUDA setup script#401
ZwFink merged 2 commits intomainfrom
fix/setup-cuda-install-prefix

Conversation

@ZwFink
Copy link
Collaborator

@ZwFink ZwFink commented Feb 10, 2026

Align setup-cuda.sh with setup-rocm.sh conventions.

  • Add HOSTN variable to strip digits from hostname
  • Include hostname in build directory name (build-${HOSTN}-cuda-${CUDA_VERSION})
  • Set CMAKE_INSTALL_PREFIX to ../install-${HOSTN}-cuda-${CUDA_VERSION} so make install targets a local directory instead of defaulting to /usr/local

Align setup-cuda.sh with setup-rocm.sh by adding HOSTN variable,
including hostname in the build directory name, and setting
CMAKE_INSTALL_PREFIX so `make install` targets a local directory
instead of defaulting to /usr/local.
@ZwFink ZwFink requested a review from ggeorgakoudis February 10, 2026 19:35
Copy link
Collaborator

@ggeorgakoudis ggeorgakoudis left a comment

Choose a reason for hiding this comment

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

LGTM

Include also LLVM version information (in ROCm it is implied), e.g.

build-${HOSTN}-cuda-${CUDA_VERSION}-llvm-${LLVM_VERSION}

@ZwFink ZwFink merged commit 6b75a12 into main Feb 10, 2026
26 checks passed
@ZwFink ZwFink deleted the fix/setup-cuda-install-prefix branch February 10, 2026 20:59
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.

2 participants