Skip to content

[Build] #358

@Liekkas-xlm

Description

@Liekkas-xlm

Describe the issue

A clear and concise description of what the issue is.

Environment information:

  • OS: Ubuntu 22.04
  • Compiler version: gcc 11.4.0
  • CMake version: 3.22
  • CUDA used for AMGX compilation: CUDA 12.4.1
  • AMGX version : v2.5.0
  • Any related environment variables information

Configuration information
cmake command:
cmake .. /
-DCMAKE_BUILD_TYPE=Release /
-DCMAKE_CUDA_ARCHITECTURES="75"
-DCMAKE_INSTALL_PREFIX=/usr/local/amgx

cmake output:
-- Using CUDA architectures: 75
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- The CUDA compiler identification is NVIDIA 12.4.131
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda-12.4/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found MPI_C: /home/liekkas/anaconda3/lib/libmpi.so (found version "4.1")
-- Found MPI_CXX: /home/liekkas/anaconda3/lib/libmpicxx.so (found version "4.1")
-- Found MPI: TRUE (found version "4.1")
-- Found CUDAToolkit: /usr/local/cuda-12.4/include (found suitable version "12.4.131", minimum required is "12.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
This is a MPI build:TRUE
-- CUDA 12.4.131 supports architectures: 70;75;80;86;89;90;100;120
-- Building for architectures: 75
-- Configuring done
-- Generating done
-- Build files have been written to: /home/liekkas/amgx/build

Compilation information

make -j16 all

Issue information

/home/liekkas/amgx/src/../include/cusp/detail/functional.h(42): error: "identity" has already been declared in the current scope
using identity = cusp::detail::identity_function;
^

1 error detected in the compilation of "/home/liekkas/amgx/src/core.cu".
make[2]: *** [CMakeFiles/amgx_libs.dir/build.make:846: CMakeFiles/amgx_libs.dir/src/core.cu.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:159: CMakeFiles/amgx_libs.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Additional context

Is it a bug? Or I do something wrong?

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