Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Oct 2, 2025

Stacked PRs:


Print Helion kernel source line in symbolic shape debugging

With TORCH_LOGS="+dynamic", now it prints:

I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^

which can be further traced with TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"

yf225 added a commit that referenced this pull request Oct 2, 2025
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 2, 2025
@yf225 yf225 changed the base branch from yf225/stack/60 to main October 2, 2025 03:52
yf225 added a commit that referenced this pull request Oct 2, 2025
With `TORCH_LOGS="+dynamic"`, now it prints:
```
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^
```
which can be further traced with TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"

stack-info: PR: #771, branch: yf225/stack/61
@yf225 yf225 changed the base branch from main to yf225/stack/60 October 2, 2025 03:52
@yf225 yf225 changed the base branch from yf225/stack/60 to main October 2, 2025 03:52
yf225 added a commit that referenced this pull request Oct 2, 2025
With `TORCH_LOGS="+dynamic"`, now it prints:
```
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^
```
which can be further traced with `TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"`

stack-info: PR: #771, branch: yf225/stack/61
@yf225 yf225 changed the base branch from main to yf225/stack/60 October 2, 2025 03:52
@yf225 yf225 requested review from jansel and oulgen October 2, 2025 03:53
@yf225 yf225 changed the base branch from yf225/stack/60 to main October 2, 2025 04:12
yf225 added a commit that referenced this pull request Oct 2, 2025
With `TORCH_LOGS="+dynamic"`, now it prints:
```
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^
```
which can be further traced with `TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"`

stack-info: PR: #771, branch: yf225/stack/61
yf225 added a commit that referenced this pull request Oct 2, 2025
With `TORCH_LOGS="+dynamic"`, now it prints:
```
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^
```
which can be further traced with `TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"`

stack-info: PR: #771, branch: yf225/stack/61
With `TORCH_LOGS="+dynamic"`, now it prints:
```
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] create_unbacked_symint u0 [-int_oo, int_oo]
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800] Helion kernel stack:
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]   File "/home/willfeng/local/helion2/minimal_repro.py", line 10, in logging_reduce_rows
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]     m_block = hl.register_block_size(m)
I1001 20:49:16.995000 1208064 torch/fx/experimental/symbolic_shapes.py:4800]               ^^^^^^^^^^^^^^^^^^^^^^^^^
```
which can be further traced with `TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"`

stack-info: PR: #771, branch: yf225/stack/61
@yf225 yf225 merged commit b03bb06 into main Oct 2, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants