Commit a51208c
Check cluster_dims attribute exists before access (pytorch#167187)
Error in Helion CI's AMD job: https://github.com/pytorch/helion/actions/runs/19118581048/job/54633730633
```
> (binary.metadata.num_ctas, *binary.metadata.cluster_dims)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if hasattr(binary, "metadata")
else ()
)
),
"function": get_first_attr(binary, "function", "cu_function"),
"runner": get_first_attr(binary, "run", "c_wrapper"),
"math": math_lib,
"torch": torch_lib,
"triton": triton_lib,
}
E torch._inductor.exc.InductorError: AttributeError: 'KernelMetadata' object has no attribute 'cluster_dims'
```
Pull Request resolved: pytorch#167187
Approved by: https://github.com/oulgen1 parent ed4aa44 commit a51208c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
| 1854 | + | |
| 1855 | + | |
1854 | 1856 | | |
1855 | 1857 | | |
1856 | 1858 | | |
| |||
0 commit comments