| 119 | } |
| 120 | |
| 121 | TEST(Where, MaxDim) { |
| 122 | const size_t largeDim = 65535 * 32 + 2; |
| 123 | |
| 124 | array input = range(dim4(1, largeDim), 1); |
| 125 | array output = where(input % 2 == 0); |
| 126 | array gold = 2 * range(largeDim / 2); |
| 127 | ASSERT_ARRAYS_EQ(gold.as(u32), output); |
| 128 | |
| 129 | input = range(dim4(1, 1, 1, largeDim), 3); |
| 130 | output = where(input % 2 == 0); |
| 131 | ASSERT_ARRAYS_EQ(gold.as(u32), output); |
| 132 | } |
| 133 | |
| 134 | TEST(Where, ISSUE_1259) { |
| 135 | array a = randu(10, 10, 10); |