8000 [cutlass backend] Reduce log level for cutlass compilation error by henrylhtsang · Pull Request #153397 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[cutlass backend] Reduce log level for cutlass compilation error #153397

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

Closed
wants to merge 5 commits into from

Conversation

henrylhtsang
Copy link
Contributor
@henrylhtsang henrylhtsang commented May 12, 2025

Stack from ghstack (oldest at bottom):

Differential Revision: D74596410

This change should only affect cutlass backend. We realize that we are going to have Cuda compilation errors, and we do a really good job handling them and caching them. So reduce the logging levels there.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

Copy link
pytorch-bot bot commented May 12, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

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

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

henrylhtsang added a commit that referenced this pull request May 12, 2025
Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)

ghstack-source-id: 283491682
Pull Request resolved: #153397
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74596410

futures[future], CUDATemplateCaller
):
log.debug(
"Exception %s for benchmark choice %s", e, futures[future]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"Exception %s for benchmark choice %s", e, futures[future]
"Exception %s for benchmark choice %s", e, futures[future], exc_info=True

Will ensure the same level of detail is printed as log.error

@henrylhtsang henrylhtsang added the topic: not user facing topic category label May 12, 2025
… error"

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
henrylhtsang added a commit that referenced this pull request May 12, 2025
Pull Request resolved: #153397

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)
ghstack-source-id: 283505757
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74596410

… error"

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
henrylhtsang added a commit that referenced this pull request May 12, 2025
Pull Request resolved: #153397

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)
ghstack-source-id: 283506277
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74596410

if not isinstance(choice, CUDATemplateCaller):
log.error(
"CUDA compilation error during autotuning: \n%s. \nIgnoring this choice.",
str(e),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
str(e),
e,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Skylion007 I will make the change, but at this point it might be worth to change all str(e) in the codebase to e (at least for the logging cases)

… error"

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
henrylhtsang added a commit that referenced this pull request May 12, 2025
Pull Request resolved: #153397


ghstack-source-id: 283518476

Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74596410

… error"


Differential Revision: [D74596410](https://our.internmc.facebook.com/intern/diff/D74596410/)

This change should only affect cutlass backend. We realize that we are going to have Cuda compilation errors, and we do a really good job handling them and caching them. So reduce the logging levels there.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74596410

"CUDA compilation error during autotuning: \n%s. \nIgnoring this choice.",
str(e),
)
from torch._inductor.codegen.cuda.cuda_kernel import CUDATemplateCaller
Copy link
Contributor

Choose a reason for hiding this comment

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

I was told local imports like these can cause unwanted compile times.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was told local imports like these can cause unwanted compile times.

I feel like if we try to import that at the top, it would cause circular import

Copy link
Contributor

Choose a reason for hiding this comment

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

give it a try and see? if not possible, it's probably fine since this is in exception handling path

Copy link
Contributor Author
@henrylhtsang henrylhtsang May 16, 2025

Choose a reason for hiding this comment

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

give it a try and see? if not possible, it's probably fine since this is in exception handling path

actually I want to test it in a subsequent PR

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 15, 2025
@henrylhtsang henrylhtsang requested a review from mlazos May 16, 2025 17:26
@henrylhtsang
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0