Skip to content

Commit d0f1b97

Browse files
authored
Merge branch 'master' into update-trigonometric-docstrings
2 parents 5f34212 + 0ab1d62 commit d0f1b97

8 files changed

Lines changed: 11 additions & 28 deletions

File tree

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
oneapi-pkgs-env: ''
4343
# Enable env when it's required to use only conda packages without OneAPI installation
4444
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
45+
dpctl-pkg-txt: 'environments/dpctl_pkg.txt'
4546

4647
steps:
4748
- name: Cancel Previous Runs
@@ -149,7 +150,7 @@ jobs:
149150
- name: Install dpctl
150151
if: env.oneapi-pkgs-env == ''
151152
run: |
152-
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl==0.20.0dev0
153+
pip install -r ${{ env.dpctl-pkg-txt }}
153154
154155
- name: Conda info
155156
run: |

.github/workflows/generate_coverage.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
oneapi-pkgs-env: ''
2727
# Enable env when it's required to use only conda packages without OneAPI installation
2828
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
29+
dpctl-pkg-txt: 'environments/dpctl_pkg.txt'
2930

3031
steps:
3132
- name: Cancel Previous Runs
@@ -108,7 +109,7 @@ jobs:
108109
- name: Install dpctl
109110
if: env.oneapi-pkgs-env == ''
110111
run: |
111-
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl==0.20.0dev0
112+
pip install -r ${{ env.dpctl-pkg-txt }}
112113
113114
- name: Conda info
114115
run: |

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set max_compiler_and_mkl_version = environ.get("MAX_BUILD_CMPL_MKL_VERSION", "2026.0a0") %}
22
{% set required_compiler_and_mkl_version = "2025.0" %}
3-
{% set required_dpctl_version = "0.19.0*" %}
3+
{% set required_dpctl_version = "0.20.0*" %}
44

55
package:
66
name: dpnp

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ def clip(a, /, min=None, max=None, *, out=None, order="K", **kwargs):
802802

803803
conjugate = conj
804804

805+
805806
_COPYSIGN_DOCSTRING = """
806807
Composes a floating-point value with the magnitude of :math:`x1_i` and the sign
807808
of :math:`x2_i` for each element of the input array `x1`.
@@ -1735,7 +1736,7 @@ def ediff1d(ary, to_end=None, to_begin=None):
17351736
Parameters
17361737
----------
17371738
x : {dpnp.ndarray, usm_ndarray}
1738-
Input array, expected to have a real-valued floating-point data type.
1739+
Input array, expected to have a boolean or real-valued data type.
17391740
out : {None, dpnp.ndarray, usm_ndarray}, optional
17401741
Output array to populate.
17411742
Array must have the correct shape and the expected data type.

dpnp/tests/test_mathematical.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
get_integer_float_dtypes,
3333
has_support_aspect16,
3434
has_support_aspect64,
35-
is_gpu_device,
3635
numpy_version,
3736
)
3837
from .third_party.cupy import testing
@@ -2178,25 +2177,11 @@ def test_out(self, func, dt_in, dt_out):
21782177
if dt_in != dt_out:
21792178
if numpy.can_cast(dt_in, dt_out, casting="same_kind"):
21802179
# NumPy allows "same_kind" casting, dpnp does not
2181-
if (
2182-
func != "fix"
2183-
and dt_in == dpnp.bool
2184-
and dt_out == dpnp.int8
2185-
and is_gpu_device()
2186-
):
2187-
# TODO: get rid of w/a when dpctl#2030 is fixed
2188-
pass
2189-
else:
2190-
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
2180+
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
21912181
else:
21922182
assert_raises(ValueError, getattr(dpnp, func), ia, out=iout)
21932183
assert_raises(TypeError, getattr(numpy, func), a, out=out)
21942184
else:
2195-
if func != "fix" and dt_in == dpnp.bool and is_gpu_device():
2196-
# TODO: get rid of w/a when dpctl#2030 is fixed
2197-
out = out.astype(numpy.int8)
2198-
iout = iout.astype(dpnp.int8)
2199-
22002185
expected = getattr(numpy, func)(a, out=out)
22012186
result = getattr(dpnp, func)(ia, out=iout)
22022187
assert result is iout
@@ -2222,11 +2207,6 @@ def test_out_usm_ndarray(self, func, dt):
22222207
out = numpy.empty(a.shape, dtype=dt)
22232208
ia, usm_out = dpnp.array(a), dpt.asarray(out)
22242209

2225-
if func != "fix" and dt == dpnp.bool and is_gpu_device():
2226-
# TODO: get rid of w/a when dpctl#2030 is fixed
2227-
out = out.astype(numpy.int8)
2228-
usm_out = dpt.asarray(usm_out, dtype=dpnp.int8)
2229-
22302210
expected = getattr(numpy, func)(a, out=out)
22312211
result = getattr(dpnp, func)(ia, out=usm_out)
22322212
assert result.get_array() is usm_out

dpnp/tests/test_umath.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ def test_umaths(test_cases):
108108
and is_gpu_device()
109109
):
110110
pytest.skip("dpctl-1652")
111-
elif umath in ["ceil", "floor", "trunc"] and args[0].dtype == dpnp.bool:
112-
pytest.skip("dpctl-2030")
113111
elif (
114112
umath == "tan"
115113
and dpnp.issubdtype(args[0].dtype, dpnp.complexfloating)

environments/dpctl_pkg.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--index-url https://pypi.anaconda.org/dppy/label/dev/simple
2+
dpctl>=0.20.0dev0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ def _get_cmdclass():
8484
},
8585
include_package_data=False,
8686
python_requires=">=3.9,<3.14",
87-
install_requires=["dpctl >= 0.19.0dev0", "numpy"],
87+
install_requires=["dpctl >= 0.20.0dev0", "numpy"],
8888
)

0 commit comments

Comments
 (0)