Skip to content

Commit 141e397

Browse files
ZzEeKkAaDiptorup Deb
authored andcommitted
Skip windows tests and avoid running float tests on int dtypes
1 parent 18da234 commit 141e397

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

numba_dpex/tests/dpjit_tests/parfors/test_builtin_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
get_float_dtypes,
1515
get_int_dtypes,
1616
has_opencl_gpu,
17+
is_windows,
1718
num_required_arguments,
1819
)
1920

@@ -316,7 +317,7 @@ def parfor_not_(a):
316317
}
317318

318319

319-
if has_opencl_gpu():
320+
if has_opencl_gpu() or is_windows():
320321
unsupported_funcs |= {parfor_ipow}
321322

322323

numba_dpex/tests/dpjit_tests/parfors/test_dpnp_ufuncs.py

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -60,43 +60,42 @@
6060
op for op in all_ufuncs if num_required_arguments(getattr(dpnp, op)) == 2
6161
}
6262

63-
if has_opencl_gpu():
64-
float_ops |= {
65-
"copysign",
66-
"divide",
67-
"hypot",
68-
"power",
69-
"true_divide",
70-
"arccos",
71-
"arccosh",
72-
"arcsin",
73-
"arcsinh",
74-
"arctan",
75-
"arctanh",
76-
"ceil",
77-
"cos",
78-
"cosh",
79-
"deg2rad",
80-
"degrees",
81-
"erf",
82-
"exp",
83-
"exp2",
84-
"expm1",
85-
"fabs",
86-
"floor",
87-
"log",
88-
"log10",
89-
"log1p",
90-
"log2",
91-
"rad2deg",
92-
"radians",
93-
"sin",
94-
"sinh",
95-
"sqrt",
96-
"tan",
97-
"tanh",
98-
"trunc",
99-
}
63+
float_ops |= {
64+
"copysign",
65+
"divide",
66+
"hypot",
67+
"power",
68+
"true_divide",
69+
"arccos",
70+
"arccosh",
71+
"arcsin",
72+
"arcsinh",
73+
"arctan",
74+
"arctanh",
75+
"ceil",
76+
"cos",
77+
"cosh",
78+
"deg2rad",
79+
"degrees",
80+
"erf",
81+
"exp",
82+
"exp2",
83+
"expm1",
84+
"fabs",
85+
"floor",
86+
"log",
87+
"log10",
88+
"log1p",
89+
"log2",
90+
"rad2deg",
91+
"radians",
92+
"sin",
93+
"sinh",
94+
"sqrt",
95+
"tan",
96+
"tanh",
97+
"trunc",
98+
}
10099

101100
int_dtypes = get_int_dtypes()
102101
float_dtypes = get_float_dtypes(no_float16=True)

0 commit comments

Comments
 (0)