Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 0.13.1dev3 from master to gold #1676

Merged
merged 22 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3fdb921
implement `dpnp.nanmean`, `dpnp.nanstd`, `dpnp.nansum`, and `dpnp.ave…
vtavana Jan 12, 2024
7e54eb8
Implement of dpnp.linalg.slogdet() (#1607)
vlad-perevezentsev Jan 12, 2024
f95ceb9
Add new blas extension and update dpnp.matmul func (#1616)
vlad-perevezentsev Jan 13, 2024
23090ce
update copyright date (#1655)
vtavana Jan 13, 2024
75c6539
Skip test for result_type (#1658)
antonwolfy Jan 15, 2024
c4b3b2e
Update dpnp.indices function (#1622)
npolina4 Jan 16, 2024
249eeb1
Extended tests verbosing (#1659)
antonwolfy Jan 16, 2024
75f1f97
update `out` keyword for elementwise functions (#1656)
vtavana Jan 17, 2024
0a5a2bd
update tests affected by changing `TypeError` to `ValueError` in `dpc…
vtavana Jan 19, 2024
9b450f0
Implement of dpnp.linalg.cholesky() (#1638)
vlad-perevezentsev Jan 20, 2024
8935acf
Work around sub_group load/store issues (#1642)
antonwolfy Jan 20, 2024
b401ae9
implement `dpnp.reciprocal` and `dpnp.angle` (#1650)
vtavana Jan 20, 2024
8072622
implement sort and argsort (#1660)
vtavana Jan 22, 2024
e404fa6
Allow for newer version of DPC++ compiler (#1664)
antonwolfy Jan 23, 2024
66f995b
update_argsort_test (#1667)
vtavana Jan 25, 2024
334d6ca
Update versions of used GitHub actions to the latest (#1666)
antonwolfy Jan 25, 2024
a75e599
Clipping with both min and max values as None (#1670)
antonwolfy Jan 26, 2024
7a56304
Update dpnp.linalg.inv() function (#1665)
vlad-perevezentsev Jan 29, 2024
94ad65b
Temorary mute tests due to known issue with OpenCL GPU (#1672)
antonwolfy Jan 31, 2024
8cde6c4
Use dpctl cmake config (#1671)
antonwolfy Feb 1, 2024
fee8efd
Merge branch 'master' into merge_to_gold
antonwolfy Feb 1, 2024
dea26e2
Set DPC++ and MKL version to 2024.1 release
antonwolfy Feb 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand All @@ -42,7 +42,7 @@ jobs:
echo "$GITHUB_CONTEXT"

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
uses: jlumbroso/free-disk-space@v1.3.1
with:
docker-images: false

Expand Down Expand Up @@ -76,13 +76,13 @@ jobs:
sudo apt-get install -y nvidia-cuda-toolkit clinfo

- name: Checkout repo
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

# https://github.com/marketplace/actions/setup-miniconda
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ env.python-ver }}
Expand All @@ -97,7 +97,7 @@ jobs:

- name: Install dpnp dependencies
run: |
conda install numpy"<1.24" dpctl">=0.15.1dev2" mkl-devel-dpcpp onedpl-devel tbb-devel dpcpp_linux-64"<2024.0.1" \
conda install numpy"<1.24" dpctl">=0.15.1dev3" mkl-devel-dpcpp onedpl-devel tbb-devel dpcpp_linux-64"<2024.0.1" \
cmake cython pytest ninja scikit-build sysroot_linux-64">=2.28" ${{ env.CHANNELS }}

- name: Install cuPy dependencies
Expand All @@ -110,8 +110,7 @@ jobs:
run: conda list

- name: Build library
run: |
CC=icx CXX=icpx python setup.py develop -G Ninja -- -DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
run: python scripts/build_locally.py

- name: Build docs
run: make html
Expand Down Expand Up @@ -184,7 +183,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

Expand Down
32 changes: 17 additions & 15 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
test_umath.py
test_usm_type.py
third_party/cupy/core_tests
third_party/cupy/linalg_tests/test_decomposition.py
third_party/cupy/linalg_tests/test_norms.py
third_party/cupy/linalg_tests/test_product.py
third_party/cupy/linalg_tests/test_solve.py
third_party/cupy/logic_tests/test_comparison.py
Expand Down Expand Up @@ -66,17 +68,17 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

- name: Checkout DPNP repo
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand All @@ -97,7 +99,7 @@ jobs:
run: conda install conda-build

- name: Cache conda packages
uses: actions/cache@v3.3.0
uses: actions/cache@v4
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand All @@ -112,7 +114,7 @@ jobs:
run: conda build --no-test --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe

- name: Upload artifact
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.3.0
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
Expand Down Expand Up @@ -145,7 +147,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.pkg-path-in-channel }}
Expand All @@ -156,7 +158,7 @@ jobs:
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -188,7 +190,7 @@ jobs:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'

- name: Cache conda packages
uses: actions/cache@v3.3.0
uses: actions/cache@v4
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand Down Expand Up @@ -246,7 +248,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
path: ${{ env.pkg-path-in-channel }}
Expand All @@ -266,7 +268,7 @@ jobs:
dir ${{ env.extracted-pkg-path }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -312,7 +314,7 @@ jobs:
run: more lockfile

- name: Cache conda packages
uses: actions/cache@v3.3.0
uses: actions/cache@v4
env:
CACHE_NUMBER: 1 # Increase to reset cache
with:
Expand Down Expand Up @@ -380,12 +382,12 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand All @@ -408,7 +410,7 @@ jobs:
run:
shell: bash -el {0}
steps:
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3.0.1
with:
run-post: false
channel-priority: "disabled"
Expand All @@ -419,7 +421,7 @@ jobs:
run: conda install anaconda-client

- name: Checkout repo
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
with:
repository: IntelPython/devops-tools
fetch-depth: 0
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/generate_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

- name: Checkout repo
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-update-conda: true
python-version: ${{ env.python-ver }}
Expand All @@ -44,7 +44,7 @@ jobs:
run: |
# use DPC++ compiler 2023.2 to work around an issue with crash
conda install cython llvm cmake">=3.21" scikit-build ninja pytest pytest-cov coverage[toml] \
dpctl">=0.15.1dev2" dpcpp_linux-64"=2023.2" sysroot_linux-64">=2.28" mkl-devel-dpcpp tbb-devel"=2021.10" \
dpctl">=0.15.1dev3" dpcpp_linux-64"=2023.2" sysroot_linux-64">=2.28" mkl-devel-dpcpp tbb-devel"=2021.10" \
onedpl-devel ${{ env.CHANNELS }}

- name: Conda info
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
sudo ln -s /usr/bin/clang-format-12 /usr/bin/clang-format
clang-format --version

- uses: actions/checkout@v3.5.2
- uses: actions/setup-python@v4.6.1
- uses: actions/checkout@v4.1.1
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/PyCQA/bandit
rev: '1.7.5'
rev: '1.7.7'
hooks:
- id: bandit
pass_filenames: false
args: ["-r", "dpnp", "-lll"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-ast
- id: check-builtin-literals
Expand Down Expand Up @@ -43,12 +43,12 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.12.1
hooks:
- id: black
args: ["--check", "--diff", "--color"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
Expand All @@ -59,13 +59,13 @@ repos:
name: isort (pyi)
types: [pyi]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
args: ["--config=.flake8"]
additional_dependencies:
- flake8-docstrings==1.7.0
- flake8-bugbear==23.6.5
- flake8-bugbear==24.1.17
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
Expand Down
14 changes: 2 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)

if (NOT DEFINED DPCTL_MODULE_PATH)
if (DEFINED ENV{DPCTL_MODULE_PATH})
set(DPCTL_MODULE_PATH $ENV{DPCTL_MODULE_PATH})
else ()
message(FATAL_ERROR "Specify DPCTL_MODULE_PATH, either via cmake or as environment varibale")
endif()
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DPCTL_MODULE_PATH})


find_package(IntelSYCL REQUIRED PATHS ${CMAKE_SOURCE_DIR}/dpnp/backend/cmake/Modules NO_DEFAULT_PATH)
find_package(TBB QUIET)
Expand Down Expand Up @@ -78,9 +68,9 @@ find_package(NumPy REQUIRED)

set(CYTHON_FLAGS "-t -w \"${CMAKE_SOURCE_DIR}\"")
find_package(Cython REQUIRED)
find_package(Dpctl REQUIRED)

message(STATUS "Dpctl_INCLUDE_DIRS=" ${Dpctl_INCLUDE_DIRS})
find_package(Dpctl REQUIRED)
message(STATUS "Dpctl_INCLUDE_DIR=" ${Dpctl_INCLUDE_DIR})
message(STATUS "Dpctl_TENSOR_INCLUDE_DIR=" ${Dpctl_TENSOR_INCLUDE_DIR})

if(WIN32)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-2023, Intel Corporation
Copyright (c) 2016-2024, Intel Corporation
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/pytest_benchmark/test_random.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cython: language_level=3
# -*- coding: utf-8 -*-
# *****************************************************************************
# Copyright (c) 2016-2023, Intel Corporation
# Copyright (c) 2016-2024, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 0 additions & 4 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ set "MKLROOT=%PREFIX%/Library"
set "TBB_ROOT_HINT=%PREFIX%/Library"
set "DPL_ROOT_HINT=%PREFIX%/Library"

%PYTHON% -m dpctl --cmakedir > Output
set /p DPCTL_CMAKE_DIR= < Output

set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
set "SKBUILD_ARGS=%SKBUILD_ARGS% -DDPCTL_MODULE_PATH:PATH=%DPCTL_CMAKE_DIR% "
set "SKBUILD_ARGS=%SKBUILD_ARGS% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"

FOR %%V IN (14.0.0 14 15.0.0 15 16.0.0 16 17.0.0 17) DO @(
Expand Down
3 changes: 1 addition & 2 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export CMAKE_GENERATOR="Ninja"
export TBB_ROOT_HINT=$PREFIX
export DPL_ROOT_HINT=$PREFIX
export MKL_ROOT_HINT=$PREFIX
SKBUILD_ARGS="-- -DDPCTL_MODULE_PATH=$($PYTHON -m dpctl --cmakedir) "
SKBUILD_ARGS="${SKBUILD_ARGS} -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
SKBUILD_ARGS="${SKBUILD_ARGS} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"

# Build wheel package
Expand Down
7 changes: 4 additions & 3 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set required_compiler_and_mkl_version = "2024.0" %}
{% set required_dpctl_version = "0.15.1dev2" %}
{% set required_compiler_and_mkl_version = "2024.1" %}
{% set required_dpctl_version = "0.15.1dev3" %}

package:
name: dpnp
Expand Down Expand Up @@ -48,7 +48,8 @@ test:
- tests
- setup.cfg
commands:
- python -c "import dpnp"
- python -c "import dpnp; print(dpnp.__version__)"
- python -m dpctl -f
- pytest -s

about:
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# -- Project information -----------------------------------------------------

project = "Data Parallel Extension for NumPy"
copyright = "2020-2023, Intel Corporation"
copyright = "2020-2024, Intel Corporation"
author = "Intel"

version = dpnp.__version__.strip(".dirty")
Expand Down
2 changes: 1 addition & 1 deletion doc/docstring_template.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cython: language_level=3
# -*- coding: utf-8 -*-
# *****************************************************************************
# Copyright (c) 2016-2023, Intel Corporation
# Copyright (c) 2016-2024, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 1 addition & 0 deletions doc/reference/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ Miscellaneous
dpnp.sqrt
dpnp.cbrt
dpnp.square
dpnp.rsqrt
dpnp.abs
dpnp.absolute
dpnp.fabs
Expand Down
Loading
Loading