NVIDIA / NVIDIA/AMGX

[Build]

Open
#358 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build issues
Dominant language
Cuda
Stars
692
Forks
197
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the reported CMake configuration and make -j16 all. Start at include/cusp/detail/functional.h:42 and the src/core.cu compilation shown in the log, then determine why identity is already declared under GCC 11.4.0 and CUDA 12.4.1; done means the AMGX build completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, ubuntu
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.