Skip to content

Commit

Permalink
Merge pull request IntelPython#1318 from IntelPython/fix/windows_tests
Browse files Browse the repository at this point in the history
Skip windows tests and avoid running float tests on int dtypes
  • Loading branch information
ZzEeKkAa authored Feb 7, 2024
2 parents 18da234 + 141e397 commit c767b39
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
3 changes: 2 additions & 1 deletion numba_dpex/tests/dpjit_tests/parfors/test_builtin_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
get_float_dtypes,
get_int_dtypes,
has_opencl_gpu,
is_windows,
num_required_arguments,
)

Expand Down Expand Up @@ -316,7 +317,7 @@ def parfor_not_(a):
}


if has_opencl_gpu():
if has_opencl_gpu() or is_windows():
unsupported_funcs |= {parfor_ipow}


Expand Down
73 changes: 36 additions & 37 deletions numba_dpex/tests/dpjit_tests/parfors/test_dpnp_ufuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,43 +60,42 @@
op for op in all_ufuncs if num_required_arguments(getattr(dpnp, op)) == 2
}

if has_opencl_gpu():
float_ops |= {
"copysign",
"divide",
"hypot",
"power",
"true_divide",
"arccos",
"arccosh",
"arcsin",
"arcsinh",
"arctan",
"arctanh",
"ceil",
"cos",
"cosh",
"deg2rad",
"degrees",
"erf",
"exp",
"exp2",
"expm1",
"fabs",
"floor",
"log",
"log10",
"log1p",
"log2",
"rad2deg",
"radians",
"sin",
"sinh",
"sqrt",
"tan",
"tanh",
"trunc",
}
float_ops |= {
"copysign",
"divide",
"hypot",
"power",
"true_divide",
"arccos",
"arccosh",
"arcsin",
"arcsinh",
"arctan",
"arctanh",
"ceil",
"cos",
"cosh",
"deg2rad",
"degrees",
"erf",
"exp",
"exp2",
"expm1",
"fabs",
"floor",
"log",
"log10",
"log1p",
"log2",
"rad2deg",
"radians",
"sin",
"sinh",
"sqrt",
"tan",
"tanh",
"trunc",
}

int_dtypes = get_int_dtypes()
float_dtypes = get_float_dtypes(no_float16=True)
Expand Down

0 comments on commit c767b39

Please sign in to comment.