Commit 34bdc40
authored
[Backend] Skip global scratch offset computation when scratch size is zero (#9473)
`getGlobalScratchPtr()` was generating `GetNumProgramsOp` (lowered to
`__ockl_get_num_groups` on AMD) even when global scratch size is 0. This
breaks `test_link_extern_libs` on AMD after adding
`GlobalScratchAllocation` pass to the pipeline.1 parent ed6f1b7 commit 34bdc40
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
1274 | | - | |
| 1274 | + | |
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
0 commit comments