apache / apache/arrow

[C++] CMake cannot find CUDA toolkit

Open
#31,833 8 comments 0 reactions 0 assignees View on GitHub
Component: C++ Component: GPU Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

For some reason, after a conda update it seems that CMake is not able to find the CUDA toolkit anymore:
```Java

-- Unable to find cudart library.
CMake Error at /home/antoine/miniconda3/envs/pyarrow/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find CUDAToolkit (missing: CUDA_CUDART) (found version
"10.1.243")
Call Stack (most recent call first):
/home/antoine/miniconda3/envs/pyarrow/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/home/antoine/miniconda3/envs/pyarrow/share/cmake-3.23/Modules/FindCUDAToolkit.cmake:818 (find_package_handle_standard_args)
src/arrow/gpu/CMakeLists.txt:40 (find_package)

-- Configuring incomplete, errors occurred!
```

which is weird as the CUDA toolkit is installed as a Ubuntu package.

**Reporter**: [Antoine Pitrou](https://issues.apache.org/jira/browse/ARROW-16462) / @pitrou
#### Related issues:
- [[C++] Cannot build with system CUDA toolkit and conda-forge compilers](https://github.com/apache/arrow/issues/31333) (supercedes)

**Note**: *This issue was originally created as [ARROW-16462](https://issues.apache.org/jira/browse/ARROW-16462). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Read related issue #31333 first, since it supersedes this report. Then inspect src/arrow/gpu/CMakeLists.txt around line 40 and reproduce the CMake configuration failure; done means the reported setup can find the CUDA toolkit during configuration.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.