You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However one use case is to do a bunch of writes or reads asynchronously. For example ( zarr-developers/zarr-python#1040 ). Doing this would accumulate a list of IOFutures from each operation.
In this case it would be helpful to have an API that is able to wait on that whole list of operations to complete. Perhaps like concurrent.futures.wait.
The text was updated successfully, but these errors were encountered:
I'm experiencing the problem that I need to recover data from a FIFO buffer on the GPU and want to write it to a RAID system. I can only have a maximum number of pwrites() at the same time and I need to wait for a process to finish before freeing that FIFO memory part.
It is not easy to bind C++ futures with Python without excessive locking of Python’s GIL. However, ucxx manages to do this without too much performance overhead thus we should investigate this at some point.
For now, you might get a similar result by calling raw_write() from a Python thread, or maybe in a async function.
Currently one needs to perform each read/write and wait on them individually. Like so
kvikio/python/examples/hello_world.py
Lines 31 to 34 in 7a43759
However one use case is to do a bunch of writes or reads asynchronously. For example ( zarr-developers/zarr-python#1040 ). Doing this would accumulate a
list
ofIOFuture
s from each operation.In this case it would be helpful to have an API that is able to
wait
on that wholelist
of operations to complete. Perhaps likeconcurrent.futures.wait
.The text was updated successfully, but these errors were encountered: