Skip to content

cupy compatibility for percentile#12098

Merged
jacobtomlinson merged 1 commit intodask:mainfrom
TomAugspurger:tom/cupy-percentile-fix
Oct 10, 2025
Merged

cupy compatibility for percentile#12098
jacobtomlinson merged 1 commit intodask:mainfrom
TomAugspurger:tom/cupy-percentile-fix

Conversation

@TomAugspurger
Copy link
Copy Markdown
Member

@TomAugspurger TomAugspurger commented Oct 9, 2025

After #12088, a few tests in dask/array/tests/test_cupy_percentile.py were failing.

  • cupy doesn't currently support np.concatenate((list_of_int, cupy_ndarray))
  • pieces of the code allocated numpy ndarrays, instead of ndarrays of the same type of the input

Fixes rapidsai/dask-upstream-testing#81. I've tested the changes locally with cupy.

cupy doesn't currently support `np.concatenate((list_of_int, cupy_ndarray))`
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 9, 2025

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

      9 files  ±0        9 suites  ±0   3h 17m 24s ⏱️ + 7m 58s
 18 102 tests ±0   16 885 ✅ ±0   1 217 💤 ±0  0 ❌ ±0 
161 992 runs  ±0  149 874 ✅  - 2  12 118 💤 +2  0 ❌ ±0 

Results for commit 948f0c6. ± Comparison against base commit c60725b.

Copy link
Copy Markdown
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this and putting in a quick fix @TomAugspurger

@jacobtomlinson jacobtomlinson merged commit 860685b into dask:main Oct 10, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failures in test_cupy_percentile

2 participants