mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: We currently failed the mutation analysis for all inline_asm ops. In this diff, we handle the case when "is_pure" is set to True since it indicates the operation doesn't mutate the input value Test Plan: ../buck-out/v2/gen/fbcode/854b9ed00d28c5c5/caffe2/test/inductor/__triton_kernels__/triton_kernels.par --r test_mutations_inline_asm_kernel ``` test_mutations_inline_asm_kernel_is_pure_true (caffe2.test.inductor.test_triton_kernels.MutationTests) ... W0226 18:10:34.261000 1906801 /data/users/sijiac/fbsource/fbcode/caffe2/torch/_higher_order_ops/triton_kernel_wrap.py:656] TTIR mutation analysis: Skipping pure tt.elementwise_inline_asm op (is_pure=True) ok ---------------------------------------------------------------------- Ran 2 tests in 0.706s OK ``` Differential Revision: D69878591 Pull Request resolved: https://github.com/pytorch/pytorch/pull/148043 Approved by: https://github.com/zou3519 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _invoke_quant.py | ||
| aoti_call_delegate.py | ||
| associative_scan.py | ||
| auto_functionalize.py | ||
| base_hop.py | ||
| cond.py | ||
| effects.py | ||
| executorch_call_delegate.py | ||
| flat_apply.py | ||
| flex_attention.py | ||
| foreach_map.py | ||
| hints_wrap.py | ||
| invoke_subgraph.py | ||
| map.py | ||
| out_dtype.py | ||
| run_const_graph.py | ||
| scan.py | ||
| strict_mode.py | ||
| torchbind.py | ||
| triton_kernel_wrap.py | ||
| utils.py | ||
| while_loop.py | ||
| wrap.py | ||