Build issue with OMP requirement
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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