Skip to content

CMake can't find CUDA #13454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 of 8 tasks
efsotr opened this issue Mar 1, 2025 · 0 comments
Open
5 of 8 tasks

CMake can't find CUDA #13454

efsotr opened this issue Mar 1, 2025 · 0 comments
Labels

Comments

@efsotr
Copy link

efsotr commented Mar 1, 2025

Checklist

  • I added a descriptive title.
  • I searched through existing issues and couldn't find a solution or duplicate issue.
  • I searched on the web (e.g. Google) and didn't find any helpful information.
  • I searched the Anaconda documentation and didn't find any helpful information.

Impacted product

  • A conda package (built by Anaconda)
  • Anaconda Distribution (formerly Anaconda Individual Edition)
  • Miniconda
  • Anaconda.org

What happened?

#13393 (comment)
pytorch/pytorch#134331 (comment)

When CUDA is installed as a system package, it creates a symbolic link:
/usr/local/cuda-12.4/include -> targets/x86_64-linux/include.
However, when installing CUDA via Anaconda, it cannot create this link because Anaconda has its own include directory:
~/anaconda3/env/<env-name>/include.
By default, when using Anaconda, CMake's FindCUDA only checks ~/anaconda3/env/<env-name>/include, which
will lead to issues if the necessary headers are not found.

Expected behavior or outcome

x

Conda info

Conda config

Conda list

Additional information

No response

@efsotr efsotr added the type-bug label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant