File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44tests/test_arithmetic.py::TestArithmetic::test_modf_part1
55tests/test_arithmetic.py::TestArithmetic::test_modf_part2
66tests/test_sycl_queue.py::test_modf[cuda:gpu:0]
7- tests/test_umath.py::test_umaths[('modf', 'f')]
8- tests/test_umath.py::test_umaths[('modf', 'd')]
97tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticModf::test_modf
108
119# random
Original file line number Diff line number Diff line change 1919 get_float_dtypes ,
2020 has_support_aspect16 ,
2121 has_support_aspect64 ,
22+ is_cuda_device ,
2223 is_gpu_device ,
2324)
2425
@@ -107,8 +108,11 @@ def test_umaths(test_cases):
107108 pytest .skip ("dpctl-1652" )
108109 elif umath in ["divmod" , "frexp" ]:
109110 pytest .skip ("Not implemented umath" )
110- elif umath == "modf" and args [0 ].dtype == dpnp .float16 :
111- pytest .skip ("dpnp.modf is not supported with dpnp.float16" )
111+ elif umath == "modf" :
112+ if args [0 ].dtype == dpnp .float16 :
113+ pytest .skip ("dpnp.modf is not supported with dpnp.float16" )
114+ elif is_cuda_device ():
115+ pytest .skip ("dpnp.modf is not supported on CUDA device" )
112116
113117 expected = getattr (numpy , umath )(* args )
114118 result = getattr (dpnp , umath )(* iargs )
You can’t perform that action at this time.
0 commit comments