pytorch / pytorch/vision

Cannot open include file: 'c10/cuda/impl/cuda_cmake_macros.h': No such file or directory

Open
#7,035 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core issue cuda dependency issue topic: binaries
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug

The cmake_windows_gpu fails with:

Error C1083: Cannot open include file: 'c10/cuda/impl/cuda_cmake_macros.h': No such file or directory

Looks like a dependency issue on core.

Versions

Latest main

Contributor guide

Open the contributing guide

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

Start with the linked CircleCI failure for the cmake_windows_gpu job and trace why the core dependency does not provide c10/cuda/impl/cuda_cmake_macros.h. Confirm the dependency and include-path expectations, then verify that the Windows GPU build completes without the missing-header error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.