Commit adfdd1e
authored
Resolving bug in
The implementation of the dot-product for the nonblocking backend could iterate over different nonzero indices in its input vectors. This bug did not materialise always, and did not materialise if the dot-product was called with the dense descriptor. This MR extends the unit test of the dot product to test more challenging sparse nonzero patterns, especially patterns that differ amongst the inputs, and add tests with two vectors with partial overlap as well as with zero overlap. The thus-extended unit test was able to trigger the pre-existing bug, which this MR also addresses. In addressing the bug, furthermore, issue #408 was uncovered.
Thanks to @GiovaGa for finding the bug, and for proposing an initial fix and unit test extension!grb::dot with nonblocking backend (#398)1 parent b314d4f commit adfdd1e
2 files changed
+90
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10398 | 10398 | | |
10399 | 10399 | | |
10400 | 10400 | | |
| 10401 | + | |
| 10402 | + | |
| 10403 | + | |
10401 | 10404 | | |
10402 | 10405 | | |
10403 | 10406 | | |
| |||
10432 | 10435 | | |
10433 | 10436 | | |
10434 | 10437 | | |
| 10438 | + | |
10435 | 10439 | | |
10436 | 10440 | | |
10437 | 10441 | | |
| |||
10450 | 10454 | | |
10451 | 10455 | | |
10452 | 10456 | | |
10453 | | - | |
10454 | | - | |
| 10457 | + | |
10455 | 10458 | | |
10456 | 10459 | | |
10457 | 10460 | | |
| |||
10461 | 10464 | | |
10462 | 10465 | | |
10463 | 10466 | | |
10464 | | - | |
| 10467 | + | |
10465 | 10468 | | |
10466 | | - | |
| 10469 | + | |
10467 | 10470 | | |
10468 | 10471 | | |
10469 | 10472 | | |
| |||
10504 | 10507 | | |
10505 | 10508 | | |
10506 | 10509 | | |
10507 | | - | |
| 10510 | + | |
10508 | 10511 | | |
10509 | | - | |
| 10512 | + | |
10510 | 10513 | | |
10511 | 10514 | | |
10512 | 10515 | | |
| |||
10658 | 10661 | | |
10659 | 10662 | | |
10660 | 10663 | | |
10661 | | - | |
| 10664 | + | |
| 10665 | + | |
| 10666 | + | |
10662 | 10667 | | |
10663 | 10668 | | |
10664 | 10669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
163 | 240 | | |
164 | 241 | | |
165 | 242 | | |
| |||
0 commit comments