-
Notifications
You must be signed in to change notification settings - Fork 24
Add call function to triton output for easier repros #514
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
base: main
Are you sure you want to change the base?
Conversation
stack-info: PR: #514, branch: oulgen/stack/64
240087e
to
8c4888b
Compare
stack-info: PR: #514, branch: oulgen/stack/64
8c4888b
to
4ce5098
Compare
helion/runtime/settings.py
Outdated
@@ -87,6 +87,7 @@ class _Settings: | |||
) | |||
autotune_precompile: bool = sys.platform != "win32" | |||
print_output_code: bool = os.environ.get("HELION_PRINT_OUTPUT_CODE", "0") == "1" | |||
print_triton_repro: bool = os.environ.get("HELION_PRINT_TRITON_REPRO", "0") == "1" |
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.
Wonder should HELION_PRINT_OUTPUT_CODE=1
just also print the call function? That way we might be able to save one environment variable too.
stack-info: PR: #514, branch: oulgen/stack/64
4ce5098
to
4fe855e
Compare
stack-info: PR: #514, branch: oulgen/stack/64
4fe855e
to
86ee59c
Compare
stack-info: PR: #514, branch: oulgen/stack/64
86ee59c
to
5e80982
Compare
if isinstance(arg, torch.SymInt): | ||
rhs = int(arg) | ||
elif isinstance(arg, torch.SymFloat): | ||
rhs = float(arg) | ||
elif isinstance(arg, torch.SymBool): | ||
rhs = bool(arg) |
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.
Do we need to be using size hints here? SymInt.__int__
adds a guard implicitly which might create some weirdness in the shape env?
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.
What would be the alternative if I want to convert a symint to a representative integer?
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.
I think there is a helper to get the size hint (without adding a guard) in CompileEnvironment/shape env.
Stacked PRs:
Add call function to triton output for easier repros