[Build] Difficulty building with CUDA 12.9+
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 692
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Describe the issue
When building with recent versions of CUDA, thrust and cub are already part of the toolkit, and the compiler will tend to use the built-in versions in preference to the older versions which are tied to amgX.
I found that I needed to add CXXFLAGS=-I srcdir/thrust -I srcdir/thrust/dependencies/cub to force the compiler to find the right libraries. Even then, some errors are occuring.
Would it be possible to provide some advice about how to compile for CUDA 12.9?
Environment information:
- OS:
Ubuntu 24.04 - Compiler version:
gcc 13 - CMake version:
3.23 - CUDA used for AMGX compilation:
CUDA 12.9 - MPI version (if applicable):
- AMGX version or commit hash:
main - Any related environment variables information
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the AMGX build on Ubuntu 24.04 with GCC 13, CMake 3.23, and CUDA 12.9, starting with the CXXFLAGS and dependency paths mentioned in the issue. Investigate the interaction between the toolkit's built-in thrust and cub versions and the copies under srcdir/thrust and srcdir/thrust/dependencies/cub; done means documenting a reliable CUDA 12.9 build procedure or identifying the remaining errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100