File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
dpnp/tests/third_party/cupy/core_tests Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
import dpnp as cp
5
+ from dpnp .tests .helper import has_support_aspect64
5
6
from dpnp .tests .third_party .cupy import testing
6
7
7
8
# TODO: remove once all dtype aliases added
47
48
@pytest .mark .filterwarnings ("ignore::RuntimeWarning" )
48
49
@testing .with_requires ("numpy>=2.0" )
49
50
@pytest .mark .parametrize ("example" , examples )
50
- @testing .numpy_cupy_allclose (atol = 1e-15 , accept_error = OverflowError )
51
+ @testing .numpy_cupy_allclose (
52
+ atol = 1e-15 , accept_error = OverflowError , type_check = has_support_aspect64 ()
53
+ )
51
54
def test_nep50_examples (xp , example ):
52
55
dct = {
53
56
"array" : xp .array ,
54
57
"uint8" : xp .uint8 ,
55
58
"int64" : xp .int64 ,
56
59
"float32" : xp .float32 ,
57
- "float64" : xp .float64 ,
58
60
"int16" : xp .int16 ,
59
61
"bool_" : xp .bool_ ,
60
62
"int32" : xp .int32 ,
61
63
"complex64" : xp .complex64 ,
62
64
"int8" : xp .int8 ,
63
65
}
66
+ if has_support_aspect64 ():
67
+ dct ["float64" ] = xp .float64
64
68
65
69
if isinstance (example , tuple ):
66
70
example , mesg = example
You can’t perform that action at this time.
0 commit comments