Doesn't compile with CUDA 12.6.77 using conda environment
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 692
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Describe the issue
Doesn't compile with CUDA 12.6.77
Environment information:
- OS: Ubuntu 24.10
- Compiler version: gcc 14.2
- CMake version: 3.30.3
- CUDA used for AMGX compilation: CUDA 12.6.77
- MPI version (if applicable):
- AMGX version or commit hash 69e625e99b8788ac7b259c6b217ad4453cc69464
Configuration information
cmake ../
Compilation information
Issue information
cmake ../ runs fine, until it returns an error:
CMake Error at CMakeLists.txt:272 (target_link_libraries):
Target "amgx" links to:
CUDA::nvToolsExt
but the target was not found. Possible reasons include:
- There is a typo in the target name.
- A find_package call is missing for an IMPORTED target.
- An ALIAS target is missing.
CMake Error at CMakeLists.txt:273 (target_link_libraries):
Target "amgxsh" links to:
CUDA::nvToolsExt
but the target was not found. Possible reasons include:
- There is a typo in the target name.
- A find_package call is missing for an IMPORTED target.
- An ALIAS target is missing.
Additional context
Compiling in Conda environment.
Compiles fine when I install older CUDA 11.7.
Doesn't work with the cuda version 12.6 from: conda install cuda -c nvidia
Im not too familar with cuda, but nvToolsExt seems to be modified in CUDA 12 to be header only and not linkable and changed to nvtx3:
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
Start in CMakeLists.txt at target_link_libraries lines 272-273 and inspect how CUDA::nvToolsExt is discovered and linked. Reproduce the configuration in the reported Conda environment with CUDA 12.6, then verify that CMake configuration completes successfully for the amgx and amgxsh targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100