Repository navigation
TST: Array API: Skip float64 tests for any float32-limited device - #33895
Merged
Merged
Conversation
….intel.com instead
This reverts commit 0837fe9.
…annot expect dtype objects to be hashable
…ted on the main CI
cakedev0
marked this pull request as ready for review
April 29, 2026 16:33
OmarManzoor
approved these changes
Apr 30, 2026
OmarManzoor
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Thank you @cakedev0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Follow-up from #32460
Fixes #33907
Context
When testing locally #32460 I noticed float64 tests were running and failing even though my intel GPU doesn't support float64. Those tests are currently skipped for "mps" devices (which all only support float32), we now have to extend this skip logic to intel GPUs for which just the
device_nameisn't enough to know whether float64 are supported.What does this implement/fix? Explain your changes.
dtype_namein_array_api_for_testand skip test if max supported dtype is too small_check_array_api_core(it was failing forStandardScalerbecause numpy result was up-casted to float64)test_max_precision_float_dtypeto a runtime-check (so we test__array_namespace_info__against run-time check, I think it's nice too have that)Result: all dpnp-gpu tests pass on my machine (
SCIPY_ARRAY_API=1 pytest sklearn -k "dpnp and gpu")