-
Notifications
You must be signed in to change notification settings - Fork 7
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
[FA] fix an assertion failure due to refactoring in PR54 #69
Conversation
We move the static_assert to the top-level kernel. After moving, the static_assert will be caught by autotuner: try: return self.do_bench(kernel_call, quantiles=(0.5, 0.2, 0.8)) except (OutOfResources, CompileTimeAssertionFailure, PTXASError): return [float("inf"), float("inf"), float("inf")] Prior to the change, CompileTimeAssertionFailure somehow is not caught and got reported and failed the build.
Thanks! The CI signals are broken rn so we can ignore the CI signals. Just to confirm, it only fixes the base variant, and opt/ws variants are not working, is it expected?
|
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
@manman-ren has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accepted internally after reviewing so accepting here. Please be sure to respond to Xu's question before shipping :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks Manman for fixing this!
@manman-ren merged this pull request in 8f8db26. |
Summary: We move the static_assert to the top-level kernel. After moving, the static_assert will be caught by autotuner: try: return self.do_bench(kernel_call, quantiles=(0.5, 0.2, 0.8)) except (OutOfResources, CompileTimeAssertionFailure, PTXASError): return [float("inf"), float("inf"), float("inf")] Prior to the change, CompileTimeAssertionFailure somehow is not caught and got reported and failed the build. Verified with: python run.py --op fp8_attention python run.py --op flash_attention --only triton_tutorial_flash_v2 --num-inputs 1 --metrics tflops --num-inputs 1 Pull Request resolved: #69 Reviewed By: xuzhao9, adamomainz Differential Revision: D66336174 Pulled By: manman-ren fbshipit-source-id: 95d29821e6cba45af535b11020aa51424a408789
We move the static_assert to the top-level kernel. After moving, the static_assert will be caught by autotuner:
try:
return self.do_bench(kernel_call, quantiles=(0.5, 0.2, 0.8))
except (OutOfResources, CompileTimeAssertionFailure, PTXASError):
return [float("inf"), float("inf"), float("inf")]
Prior to the change, CompileTimeAssertionFailure somehow is not caught and got reported and failed the build.
Verified with: python run.py --op fp8_attention
python run.py --op flash_attention --only triton_tutorial_flash_v2 --num-inputs 1 --metrics tflops --num-inputs 1