Repository navigation
Closed
Labels
Description
We want to track what are the issues that need to be solved in the long-term for NEP-18 support and interoperability with libraries such as CuPy.
Structural changes:
- Support
dask.Array._metaattribute Add Dask Array._meta attribute #4543 Array._meta missing functionality tracker #4888 -
__array_function__fallback to NumPy implementation NEP-18: Handling aliased NumPy functions numpy/numpy#12974, NEP: Update NEP-18 to include the__skip_array_function__attribute. numpy/numpy#13305
Functional changes:
- Support for
shape=on `*_like functions - Special empty slice copying in Allow copying in the format
cupy_array[:] = numpy_arraycupy/cupy#2079, requires environment variableCUPY_EXPERIMENTAL_SLICE_COPY=1 - Support for
__array_function__on Dask NEP-18: Calls on Dask+CuPy arrays cause "object __array__ method not producing an array" #4563
Bug fixes:
-
da.einsumdoesn't work with CuPy arrays [BUG] dask.array.einsum doesn't support CuPy backend #4898 -
diag()fails on CuPy arrays NEP-18: diag() fails working on CuPy array #4490 - prevent
fix()depending on CuPy's__array_wrap__NEP-18: fix() with CuPy array depends on __array_wrap__ #4496 - Dispatch modules with
__array_function__Calling numpy.linalg.qr() on CuPy array fails cupy/cupy#2011 - Multi-threaded support for CuPy on CUDA libraries requiring handles NEP-18: CUDA illegal memory access with CuPy #4487, Multi-threaded qr() causes CUDA illegal memory access cupy/cupy#2045
-
mean()/moment()reduction issues NEP-18: mean_chunk() object __array__ method not producing an array #4481, Some functions fail on Dask arrays from sparse #4523 -
flatnonzero()requirescompress()which is not implemented in CuPy NEP-18: flatnonzero() on CuPy array missing cupy.compress() #4497 - Infinite recursion on CuPy
isclose()isclose() causes infinite recursion with __array_function__ cupy/cupy#2029 -
da.padsupport: dask.pad does not work with cupy arrays #6117 -
da.fftsupport: dask.fft does not work with cupy arrays #6118
Testing:
- Increase
__array_function__testing WIP: NEP-18 Tests #4486
Activity
[-]Road to NEP-18[/-][+]NEP-18 Issue Tracking[/+]mrocklin commentedon Apr 24, 2019
Thanks @pentschev ! This is great. I enjoyed looking through the various NumPy and CuPy PRs and issues listed here.
jakirkham commentedon Feb 20, 2020
I checked some boxed here based on things that appear to already be completed (merged PRs, closed issues). Hope that is ok 🙂
quasiben commentedon Mar 14, 2023
@pentschev do you think this issue can be closed now ?
pentschev commentedon Mar 15, 2023
I think so, we've covered the vast majority of things that we thought were relevant at time of writing. We are unlikely to resolve the last few remaining points as most of the common use cases are now covered in Dask, therefore closing it seems ok.