Skip to content

Commit 547bf2e

Browse files
Merge branch 'master' into replace-use-of-queue-mgr
2 parents 458f502 + 4f10e1d commit 547bf2e

File tree

10 files changed

+26
-49
lines changed

10 files changed

+26
-49
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
day: "saturday"
8+
rebase-strategy: "disabled"

.github/workflows/build-sphinx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ jobs:
8686
sudo apt-get install -y nvidia-cuda-toolkit clinfo
8787
8888
- name: Checkout repo
89-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
89+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
9090
with:
9191
fetch-depth: 0
9292

9393
# https://github.com/marketplace/actions/setup-miniconda
9494
- name: Setup miniconda
95-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
95+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
9696
with:
9797
auto-update-conda: true
9898
python-version: ${{ env.python-ver }}
@@ -199,7 +199,7 @@ jobs:
199199
runs-on: ubuntu-20.04
200200

201201
steps:
202-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
202+
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
203203
with:
204204
fetch-depth: 0
205205

.github/workflows/conda-package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ jobs:
8181
access_token: ${{ github.token }}
8282

8383
- name: Checkout DPNP repo
84-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
84+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
8585
with:
8686
fetch-depth: 0
8787

8888
- name: Setup miniconda
89-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
89+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
9090
with:
9191
auto-update-conda: true
9292
python-version: ${{ matrix.python }}
@@ -107,7 +107,7 @@ jobs:
107107
run: conda install conda-build=${{ env.CONDA_BUILD_VERSION}}
108108

109109
- name: Cache conda packages
110-
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
110+
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
111111
env:
112112
CACHE_NUMBER: 1 # Increase to reset cache
113113
with:
@@ -155,7 +155,7 @@ jobs:
155155

156156
steps:
157157
- name: Download artifact
158-
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
158+
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
159159
with:
160160
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
161161
path: ${{ env.pkg-path-in-channel }}
@@ -166,7 +166,7 @@ jobs:
166166
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}
167167
168168
- name: Setup miniconda
169-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
169+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
170170
with:
171171
auto-update-conda: true
172172
python-version: ${{ matrix.python }}
@@ -198,7 +198,7 @@ jobs:
198198
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
199199

200200
- name: Cache conda packages
201-
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
201+
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
202202
env:
203203
CACHE_NUMBER: 1 # Increase to reset cache
204204
with:
@@ -256,7 +256,7 @@ jobs:
256256

257257
steps:
258258
- name: Download artifact
259-
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
259+
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
260260
with:
261261
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
262262
path: ${{ env.pkg-path-in-channel }}
@@ -276,7 +276,7 @@ jobs:
276276
dir ${{ env.extracted-pkg-path }}
277277
278278
- name: Setup miniconda
279-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
279+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
280280
with:
281281
auto-update-conda: true
282282
python-version: ${{ matrix.python }}
@@ -323,7 +323,7 @@ jobs:
323323
run: more lockfile
324324

325325
- name: Cache conda packages
326-
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
326+
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
327327
env:
328328
CACHE_NUMBER: 1 # Increase to reset cache
329329
with:
@@ -391,12 +391,12 @@ jobs:
391391
392392
steps:
393393
- name: Download artifact
394-
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
394+
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
395395
with:
396396
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
397397

398398
- name: Setup miniconda
399-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
399+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
400400
with:
401401
auto-update-conda: true
402402
python-version: ${{ matrix.python }}
@@ -419,7 +419,7 @@ jobs:
419419
run:
420420
shell: bash -el {0}
421421
steps:
422-
- uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
422+
- uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
423423
with:
424424
run-post: false
425425
channel-priority: "disabled"
@@ -430,7 +430,7 @@ jobs:
430430
run: conda install anaconda-client
431431

432432
- name: Checkout repo
433-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
433+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
434434
with:
435435
repository: IntelPython/devops-tools
436436
fetch-depth: 0

.github/workflows/generate_coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
access_token: ${{ github.token }}
3131

3232
- name: Checkout repo
33-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
3434
with:
3535
fetch-depth: 0
3636

3737
- name: Setup miniconda
38-
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc # v3.0.2
38+
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
3939
with:
4040
auto-update-conda: true
4141
python-version: ${{ env.python-ver }}

.github/workflows/openssf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: "Checkout code"
36-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
3737
with:
3838
persist-credentials: false
3939

@@ -68,6 +68,6 @@ jobs:
6868

6969
# Upload the results to GitHub's code scanning dashboard.
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
71+
uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7
7272
with:
7373
sarif_file: results.sarif

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
pylint
2626
2727
- name: Checkout DPNP repo
28-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2929

3030
- name: Set up python
3131
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0

conda-recipe/meta.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% set required_compiler_and_mkl_version = "2024.0" %}
22
{% set excluded_compiler_version1 = "2024.0.1" %}
33
{% set excluded_compiler_version2 = "2024.0.2" %}
4+
{% set excluded_compiler_version3 = "2024.0.3" %}
45
{% set required_dpctl_version = "0.16.0" %}
56

67
package:
@@ -26,7 +27,8 @@ requirements:
2627
- scikit-build
2728
build:
2829
- {{ compiler('cxx') }}
29-
- {{ compiler('dpcpp') }} >={{ required_compiler_and_mkl_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [not osx]
30+
- {{ compiler('dpcpp') }} >={{ required_compiler_and_mkl_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
31+
- {{ compiler('dpcpp') }} >={{ required_compiler_and_mkl_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
3032
- sysroot_linux-64 >=2.28 # [linux]
3133
run:
3234
- python

doc/reference/dtype.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Data type testing
4444
dpnp.issubdtype
4545
dpnp.issubsctype
4646
dpnp.issubclass_
47-
dpnp.find_common_type
4847

4948
Miscellaneous
5049
-------------

dpnp/dpnp_utils/dpnp_algo_utils.pxd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ Returns a tuple of:
9090
2. dtype
9191
"""
9292

93-
cpdef find_common_type(object x1_obj, object x2_obj)
94-
"""
95-
Find common type of 2 input objects
96-
"""
97-
98-
9993
cpdef long _get_linear_index(key, tuple shape, int ndim)
10094
"""
10195
Compute linear index of an element in memory from array indices

dpnp/dpnp_utils/dpnp_algo_utils.pyx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -432,26 +432,6 @@ cdef tuple get_shape_dtype(object input_obj):
432432
return (return_shape, dpnp.dtype(type(input_obj)))
433433

434434

435-
cpdef find_common_type(object x1_obj, object x2_obj):
436-
_, x1_dtype = get_shape_dtype(x1_obj)
437-
_, x2_dtype = get_shape_dtype(x2_obj)
438-
439-
cdef list array_types = []
440-
cdef list scalar_types = []
441-
442-
if dpnp.isscalar(x1_obj):
443-
scalar_types.append(x1_dtype)
444-
else:
445-
array_types.append(x1_dtype)
446-
447-
if dpnp.isscalar(x2_obj):
448-
scalar_types.append(x2_dtype)
449-
else:
450-
array_types.append(x2_dtype)
451-
452-
return numpy.find_common_type(array_types, scalar_types)
453-
454-
455435
cdef shape_type_c get_common_shape(shape_type_c input1_shape, shape_type_c input2_shape) except *:
456436
cdef shape_type_c input1_shape_orig = input1_shape
457437
cdef shape_type_c input2_shape_orig = input2_shape

0 commit comments

Comments
 (0)