This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit d984f4e
Sven Verdoolaege
insertCopiesUnder: drop iteration over tensor dimensions of size 1 up front
When mapping the code for copying arrays to/from shared memory to threads,
the band members of the copying schedule that iterate over
a tensor dimension of size 1 do not get mapped to a thread identifier.
This was handled by code in mapCopiesToThreads that is relatively
complicated and that needs to take into account situations
that may never arise in practice.
It is much simpler to make sure that those band members
do not even appear in the copying schedule, by removing
them while the copying schedule is being constructed in
insertCopiesUnder.
Note that insertCopiesUnder now relies on promotedDecls_,
so the call to insertCopiesUnder needs to be moved after
the construction of promotedDecls_.1 parent 71054ee commit d984f4e
File tree
3 files changed
+33
-24
lines changed- tc/core/polyhedral
- cuda
3 files changed
+33
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | 102 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
123 | 106 | | |
124 | 107 | | |
125 | 108 | | |
126 | | - | |
| 109 | + | |
127 | 110 | | |
128 | 111 | | |
129 | | - | |
130 | 112 | | |
131 | | - | |
| 113 | + | |
132 | 114 | | |
133 | 115 | | |
134 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
425 | 449 | | |
426 | 450 | | |
427 | 451 | | |
| |||
449 | 473 | | |
450 | 474 | | |
451 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
452 | 479 | | |
453 | 480 | | |
454 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments