8000 Print correct variable names in cuda.cmake by agirault · Pull Request #153402 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Print correct variable names in cuda.cmake #153402

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 1 commit into
base: main
Choose a base branch
from

Conversation

agirault
Copy link

Context

https://discuss.pytorch.org/t/use-cudnn-set-to-zero-after-upgrade-to-libtorch-2-0/175413/4

Change

Match status message with the actual variable name

Note: still confusing to me what these impact when importing a pre-built libtorch with find_package(Torch)

Copy link
pytorch-bot bot commented May 12, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 51f70b4 with merge base 45df18d (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

Copy link

CLA Not Signed

Copy link
Contributor

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@@ -232,7 +232,7 @@ if(CAFFE2_USE_CUSPARSELT)
target_link_libraries(torch::cusparselt INTERFACE ${CUSPARSELT_LIBRARY_PATH})
endif()
else()
message(STATUS "USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support")
message(STATUS "CAFFE2_USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support")
endif()

if(USE_CUDSS)
Copy link
Author

Choose a reason for hiding this comment

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

That one did not have a CAFFE2_ prefix which is unfortunate, but changing it would break backward compatibility so I didn't update here.

@colesbury colesbury requested a review from malfet May 13, 2025 00:55
@colesbury colesbury added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 13, 2025
Copy link
Contributor
@malfet malfet left a comment

Choose a reason for hiding this comment

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

I'm not sure what do you mean by "correct" names here? I.e. is there documentaiton/or code that says those should be it?
I.e.

cmake_dependent_option(USE_CUDNN "Use cuDNN" ON "USE_CUDA" OFF)

clearly defines USE_CUDNN not CAFFE2_USE_CUDNN

@cyyever
Copy link
Collaborator
cyyever commented May 13, 2025

We have dropped Caffe2 and the names were changed to remove the CAFFE2 prefix last year.

@agirault
Copy link
Author

@malfet @cyyever : please see following places in main where the CAFFE2_ prefix is used and checked to inform whether the message() calls I'm updating in this MR are called or not:

See instances where using the CAFFE2_ prefix has been necessary:

That's also the recommendation currently given by the very @ptrblck today given the if checks in there.

@agirault
Copy link
Author

We have dropped Caffe2 and the names were changed to remove the CAFFE2 prefix last year.

Hi @cyyever. There are currently

Removing them sounds fine though it breaks backward comp, might want to keep checking for both (even if only printing without the prefix)

@cyyever
Copy link
Collaborator
cyyever commented May 13, 2025

@agirault May you help mitigate the remaining CAFFE2_USE_XXX to USE_XXX?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open source 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.

5 participants
0