Skip to content

Commit

Permalink
Use stream to allocate cupy memory in new stream test
Browse files Browse the repository at this point in the history
  • Loading branch information
NaderAlAwar committed Jan 17, 2025
1 parent 6a1f2a8 commit 06df21e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/cuda_parallel/tests/test_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ def add_op(x, y):
h_init=h_init,
stream=stream_wrapper,
)
d_temp_storage = cp.empty(temp_storage_size, dtype=np.uint8)
with stream:
d_temp_storage = cp.empty(temp_storage_size, dtype=np.uint8)

reduce_into(d_temp_storage, d_in, d_out, d_in.size, h_init, stream=stream_wrapper)
with stream:
Expand Down

0 comments on commit 06df21e

Please sign in to comment.