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
Describe the issue
When building with recent versions of CUDA,
thrustandcubare 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/cubto 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:
Ubuntu 24.04gcc 133.23CUDA 12.9main