Skip to content
Snippets Groups Projects
Commit 743e8933 authored by Matt Wala's avatar Matt Wala
Browse files

Be careful about overflow.

parent cc38becf
No related branches found
No related tags found
No related merge requests found
......@@ -276,7 +276,8 @@ class TreeBuilder(object):
if max_leaf_refine_weight <= 0:
raise ValueError("max_leaf_refine_weight must be positive")
total_refine_weight = cl.array.sum(refine_weights).get()
total_refine_weight = cl.array.sum(
refine_weights, dtype=np.dtype(np.int64)).get()
del max_particles_in_box
del specified_max_particles_in_box
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment