NVIDIA / NVIDIA/AMGX

Build issue with OMP requirement

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

Nobody has claimed this yet.

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

Description

Hi

Encountered an error during build
amgx/src/classical/interpolators/distance1.cu (338): error: identifier "omp_get_max_threads" is undefined

Build env is: gcc/9.3.0 openmpi/4.1.3 cuda/11.8.0 cmake/3.24.3
cmake -DCUDA_ARCH="70" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..

Resolved the issue with inclusion of
#include <omp.h>
in distance1.cu header

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

Inspect amgx/src/classical/interpolators/distance1.cu around line 338 and reproduce the reported build with the listed GCC, OpenMPI, CUDA, and CMake environment. Verify that the OpenMP declaration is available during compilation, then confirm the build completes without the omp_get_max_threads error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.