Skip to content

Conversation

crusaderky
Copy link
Contributor

@crusaderky crusaderky commented Mar 6, 2025

Very early prototype inspired by https://github.com/mdhaber/marray/

FYI @mdhaber @lucascolley

Demo

>>> import dask.array as da, cupy as cp
>>> from array_api_compat import array_namespace
>>> x = da.from_array(cp.asarray(0))
>>> xp = array_namespace(x)
>>> xp
<module 'array_api_compat.dask.array.cupy'>
>>> y = xp.arange(10)
>>> y
dask.array<arange, shape=(10,), dtype=int64, chunksize=(10,), chunktype=cupy.ndarray>
>>> type(y.compute())
cupy.ndarray
>>> array_namespace(y) is xp
True

@crusaderky crusaderky force-pushed the dask_wrap_namespace branch 3 times, most recently from 7f39b03 to 592e31a Compare March 6, 2025 00:35
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch 3 times, most recently from 57d168e to f8aa551 Compare April 1, 2025 08:30
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch 2 times, most recently from 330c006 to 927c9a3 Compare April 10, 2025 09:45
@ev-br ev-br added the enhancement New feature or request label Apr 15, 2025
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch from 927c9a3 to 8b77b6e Compare April 15, 2025 14:28
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch 2 times, most recently from b34e220 to 374212a Compare April 24, 2025 12:33
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch 2 times, most recently from 94c070c to 4a9a060 Compare May 16, 2025 09:43
@crusaderky crusaderky force-pushed the dask_wrap_namespace branch from 4a9a060 to 28b6d2a Compare June 6, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants