Skip to content

[Build] Difficulty building with CUDA 12.9+ #351

@chrisrichardson

Description

@chrisrichardson

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions