Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions numba/np/ufunc/gufunc_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ void divide_work(const RangeActual &full_iteration_space,
} else {
// We allocate the remaining threads proportionally to the ratio of the current dimension length to the total.
divisions_for_this_dim = intp(guround(num_threads * ((float)dims[index].length / total_len)));
if (divisions_for_this_dim < 1) {
divisions_for_this_dim = 1;
}
}

// These are used to divide the iteration space.
Expand Down
8 changes: 8 additions & 0 deletions numba/tests/test_parfors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,14 @@ def test_impl(a):
x = np.ones((3,3))
self.check(test_impl, x)

@skip_parfors_unsupported
def test_high_dimension1(self):
# issue6749
def test_impl(x):
return x * 1.0
Comment thread
DrTodd13 marked this conversation as resolved.
Resolved
x = np.ones((2, 2, 2, 2, 2, 15))
self.check(test_impl, x)


class TestParforsLeaks(MemoryLeakMixin, TestParforsBase):
def check(self, pyfunc, *args, **kwargs):
Expand Down