Commit a4da1d4
[Graph Partition] support standalone_compile (pytorch#154698)
For graph partition, `write_get_raw_stream_header_once` is done once so the autotune code may not have the header. This PR additionally calls `write_get_raw_stream_header` in `codegen_device_guard_enter` before `get_raw_stream` is used.
Pull Request resolved: pytorch#154698
Approved by: https://github.com/oulgen1 parent d91c85b commit a4da1d4
File tree
3 files changed
+26
-8
lines changed- test/inductor
- torch/_inductor
- codegen
3 files changed
+26
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | | - | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1569 | 1572 | | |
1570 | 1573 | | |
1571 | 1574 | | |
| |||
1580 | 1583 | | |
1581 | 1584 | | |
1582 | 1585 | | |
1583 | | - | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1584 | 1589 | | |
1585 | 1590 | | |
1586 | 1591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
| 895 | + | |
898 | 896 | | |
899 | 897 | | |
900 | 898 | | |
| |||
1057 | 1055 | | |
1058 | 1056 | | |
1059 | 1057 | | |
1060 | | - | |
1061 | | - | |
| 1058 | + | |
1062 | 1059 | | |
1063 | 1060 | | |
1064 | 1061 | | |
| |||
1068 | 1065 | | |
1069 | 1066 | | |
1070 | 1067 | | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1071 | 1072 | | |
1072 | 1073 | | |
1073 | 1074 | | |
| |||
1248 | 1249 | | |
1249 | 1250 | | |
1250 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1251 | 1255 | | |
1252 | 1256 | | |
1253 | 1257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3101 | 3101 | | |
3102 | 3102 | | |
3103 | 3103 | | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
0 commit comments