Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use official FindCUDAToolkit.cmake and newer CMake syntax #153783

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
wants to merge 9 commits into
base: main
Choose a base branch
Loading
from

Conversation

cyyever
Copy link
Collaborator

@cyyever cyyever commented May 18, 2025

Remove cmake/Modules/FindCUDAToolkit.cmake and use the shipped one. caffe2:: CUDA targets have been renamed to torch::.

Copy link

pytorch-bot bot commented May 18, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/153783

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7471841 with merge base 447b481 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@cyyever
Copy link
Collaborator Author

cyyever commented May 18, 2025

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label May 18, 2025
@cyyever cyyever requested a review from peterbell10 May 18, 2025 00:59
@cyyever cyyever requested a review from malfet May 18, 2025 01:20
@cyyever cyyever added the ciflow/trunk Trigger trunk jobs on your pull request label May 18, 2025
@cyyever cyyever changed the title Use CUDA targets and syntax from newer CMake Use official FindCUDAToolkit.cmake and newer CMake syntax May 18, 2025
@cyyever cyyever requested a review from Skylion007 May 18, 2025 07:21
Copy link
Collaborator

@Skylion007 Skylion007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with older CMake, might understanding is part of the reason to vendor this file is to backport support for newer CUDA to older CMake.

@cyyever
Copy link
Collaborator Author

cyyever commented May 19, 2025

Does this work with older CMake, might understanding is part of the reason to vendor this file is to backport support for newer CUDA to older CMake.

This PR relies on #153153

@cyyever cyyever requested a review from nWEIdia May 20, 2025 03:08
@cyyever cyyever force-pushed the cuda_targets branch 2 times, most recently from c85a443 to 3d3f748 Compare May 20, 2025 04:46
@HDCharles HDCharles added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 20, 2025
pytorchmergebot pushed a commit that referenced this pull request May 29, 2025
Update the minimum CMake version to 3.27 because of it provides more CUDA targets such as `CUDA::nvperf_host` so that it is possible to remove some of our forked CUDA modules. See #153783.
It's also possible to facilitate future third-party updates such as FBGEMM (its current shipped version requires 3.21).

Pull Request resolved: #153153
Approved by: https://github.com/malfet
@cyyever cyyever force-pushed the cuda_targets branch 2 times, most recently from dfa6a88 to 91af6e4 Compare May 29, 2025 01:26
@cyyever cyyever requested a review from Skylion007 May 29, 2025 01:57
@cyyever
Copy link
Collaborator Author

cyyever commented May 29, 2025

@Skylion007 The dependency has landed.

pytorchmergebot pushed a commit that referenced this pull request May 30, 2025
Update the minimum CMake version to 3.27 because of it provides more CUDA targets such as `CUDA::nvperf_host` so that it is possible to remove some of our forked CUDA modules. See #153783.
It's also possible to facilitate future third-party updates such as FBGEMM (its current shipped version requires 3.21).

Pull Request resolved: #153153
Approved by: https://github.com/malfet
pytorchmergebot pushed a commit that referenced this pull request May 31, 2025
Update the minimum CMake version to 3.27 because of it provides more CUDA targets such as `CUDA::nvperf_host` so that it is possible to remove some of our forked CUDA modules. See #153783.
It's also possible to facilitate future third-party updates such as FBGEMM (its current shipped version requires 3.21).

Pull Request resolved: #153153
Approved by: https://github.com/malfet
pytorchmergebot pushed a commit that referenced this pull request May 31, 2025
Update the minimum CMake version to 3.27 because of it provides more CUDA targets such as `CUDA::nvperf_host` so that it is possible to remove some of our forked CUDA modules. See #153783.
It's also possible to facilitate future third-party updates such as FBGEMM (its current shipped version requires 3.21).

Pull Request resolved: #153153
Approved by: https://github.com/malfet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.