Skip to content

Commit f82c9b0

Browse files
author
Dmitry Razdoburdin
committed
fix
1 parent 62d91cf commit f82c9b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/sycl/tree/hist_dispatcher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class HistDispatcher {
9393
}
9494

9595
inline BlockParams GetBlocksParameters(size_t size, size_t max_nblocks) const {
96+
if (max_nblocks == 0) return {0, 0};
9697
size_t nblocks = max_compute_units;
9798

9899
size_t block_size = size / nblocks + !!(size % nblocks);

0 commit comments

Comments
 (0)