Processing Zarr files #3
Unanswered
orliac
asked this question in
cuPyNumeric
Replies: 1 comment 7 replies
-
Hello So Legate provides a (very!) experimental Zarr IO backend that you might be able to use for this. Unfortunately, the actual read/write API is relatively limited: from legate.core.experimental.io.zarr import read_array
logical_array = read_array("path/to/file.zarr") # returns legate.core.LogicalArray You could further post-process the array using python tasks: from legate.core.task import task, InputArray, OutputArray
import cupynumeric as cnp
@task
def post_process(arr_in: InputArray, arr_out: OutputArray) -> None:
cnp_in = cnp.asarray(arr_in)
cnp_out = cnp.asarray(arr_out)
cnp_out[:] = ...
post_process(arr_in=logical_array, arr_out=logical_array)
arr = cnp.asarray(logical_array) But we currently don't have mechanism to provide callbacks during the actual loading of the array like |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm seeking advice on what would be the most natural way to process a Zarr file with cupynumeric where I process each chunk with a custom function and perform a reduction to get the final result. In dask-cuda I'm using
map_blocks
to that end.Beta Was this translation helpful? Give feedback.
All reactions