Skip to content

Commit 715371d

Browse files
author
Diptorup Deb
authored
Merge pull request #1457 from IntelPython/main
Merge 0.23 into gold/2021
2 parents fc1b1df + 46e90f6 commit 715371d

32 files changed

+261
-973
lines changed

.github/workflows/conda-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python: ['3.9', '3.10', '3.11']
33-
os: [ubuntu-latest, windows-latest]
33+
os: [ubuntu-latest, windows-2019]
3434

3535
runs-on: ${{ matrix.os }}
3636

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# Ignoring test due to opencl driver optimization bug
5555
- name: Run tests with coverage
5656
run: |
57-
pytest -q --cov --cov-report xml --pyargs numba_dpex \
57+
pytest -q --cov=./ --cov-report xml --pyargs numba_dpex \
5858
-k 'not test_1d_strided_dpnp_array_in_kernel[2]'
5959
6060
- name: Coveralls

.github/workflows/cpp_style_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Run clang-format style check for C/C++ programs.
21-
uses: jidicula/clang-format-action@v4.11.0
21+
uses: jidicula/clang-format-action@v4.13.0
2222
with:
2323
clang-format-version: '14'
2424
check-path: 'numba_dpex/dpctl_iface'

.github/workflows/openssf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
persist-credentials: false
4141

4242
- name: "Run analysis"
43-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
43+
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
4444
with:
4545
results_file: results.sarif
4646
results_format: sarif
@@ -71,6 +71,6 @@ jobs:
7171
# Upload the results to GitHub's code scanning dashboard.
7272
- name: "Upload to code-scanning"
7373
if: ${{ github.event_name == 'push' }}
74-
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
74+
uses: github/codeql-action/upload-sarif@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
7575
with:
7676
sarif_file: results.sarif

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ _skbuild
2626

2727
docs/source/developer/autogen*
2828

29+
# Ignore versioneer generated files
30+
numba_dpex/_version.py
31+
2932
# Ignore generated cpp files
3033
numba_dpex/dpnp_iface/*.cpp
3134
numba_dpex/dpnp_iface/*.h

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.23.0] - 2024-04-XX
7+
## [0.23.0] - 2024-05-28
88

99
### Fixed
1010
* Array alignment problem for stack arrays allocated for kernel arguments. (#1357)
1111
* Issue #892, #906 caused by incorrect code generation for indexing (#1377)
12-
* Fix `KernelHasReturnValueError` inside `KernelDispatcher`. (#1394)
12+
* Generation of `KernelHasReturnValueError` error inside `KernelDispatcher`. (#1394)
1313
* Issue #1390: broken support for slicing into `dpctl.tensor.usm_ndarray` in kernels (#1425)
14+
* Support for Wheels package on Windows (#1430)
15+
* Incorrect mangled name for kernel function arguments (#1443)
16+
* Remove artifacts from conda/wheel packages residing in root level (#1450)
17+
* GDB tests to work properly on Intel Max GPU (#1451)
18+
* Improper wheels installation on unsupported platforms (#1452)
19+
* Ref-counting of Python object temporaries in unboxing code (#1454)
20+
* Segfault caused by using `malloc` to allocate `NRT_MemInfo`. Replaced with Numba's NRT `alloc` (#1458)
21+
* Incorrect package name in README.md (#1463)
1422

1523
### Added
1624
* A new overloaded `dimensions` attribute for all index-space id classes (#1359)
@@ -24,18 +32,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2432
* A `sycl::local_accessor`-like API (`kernel_api.LocalAccessor`) for numba-dpex kernel (#1331)
2533
* Specialization support for `device_func` decorator (#1398)
2634
* Support for all `kernel_api` functions inside the `numba_dpex.kernel` decorator. (#1400)
35+
* Support for dpnp 0.15 (#1434, #1464)
36+
* Improvements to pyproject.toml configs to build numba-dpex from source. (#1449)
37+
* Load the `SPV_INTEL_variable_length_array` SPIR-V extension to supporting arrays in private address-space on Intel Max GPU. (#1451)
2738

2839
### Changed
2940
* Default inline threshold value set to `2` from `None`. (#1385)
3041
* Port parfor kernel templates to `kernel_api` (#1416), (#1424)
42+
* Use `SPIRVKernelDispatcher` for parfor kernel dispatch (#1435, #1448)
43+
* All examples use the latest dpctl API (#1431)
3144
* Minimum required dpctl version is now 0.16.1
32-
* Minimum required numba version is now 0.59.0
45+
* Minimum required numba version is now 0.59.0 (#1462)
3346

3447
### Removed
3548
* OpenCL-like kernel API functions (#1420)
3649
* `func` decorator (replaced by `device_func`) (#1400)
3750
* `numba_dpex.experimental.kernel` and `numba_dpex.experimental.device_func` (#1400)
3851

52+
3953
## [0.22.0] - 2024-02-19
4054

4155
### Fixed

MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414

15-
Data-parallel Extension for Numba* (numba-dpex) is an open-source standalone
15+
Data Parallel Extension for Numba* (numba-dpex) is an open-source standalone
1616
extension for the [Numba](http://numba.pydata.org) Python JIT compiler.
1717
Numba-dpex provides a [SYCL*](https://sycl.tech/)-like API for kernel
1818
programming Python. SYCL* is an open standard developed by the [Unified

conda-recipe/bld.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ for /f %%f in ('dir /b /S .\dist') do (
3535

3636
:: wheel file was renamed
3737
for /f %%f in ('dir /b /S .\dist') do (
38-
%PYTHON% -m pip install %%f
38+
%PYTHON% -m pip install %%f ^
39+
--no-build-isolation ^
40+
--no-deps ^
41+
--only-binary :all: ^
42+
--no-index ^
43+
--prefix %PREFIX% ^
44+
-vv
3945
if %ERRORLEVEL% neq 0 exit 1
4046
)
4147

conda-recipe/build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ echo "--gcc-toolchain=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX}/${HOST}/sysroot
99
ICPXCFG="$(pwd)/icpx_for_conda.cfg"
1010
ICXCFG="$(pwd)/icpx_for_conda.cfg"
1111

12+
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
13+
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
14+
1215
export ICXCFG
1316
export ICPXCFG
1417

@@ -26,8 +29,15 @@ export PATH=$CONDA_PREFIX/bin-llvm:$PATH
2629
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
2730
${PYTHON} -m build -w -n -x
2831
${PYTHON} -m wheel tags --remove --build "$GIT_DESCRIBE_NUMBER" \
29-
--platform-tag manylinux2014_x86_64 dist/numba_dpex*.whl
30-
${PYTHON} -m pip install dist/numba_dpex*.whl
32+
--platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" \
33+
dist/numba_dpex*.whl
34+
${PYTHON} -m pip install dist/numba_dpex*.whl \
35+
--no-build-isolation \
36+
--no-deps \
37+
--only-binary :all: \
38+
--no-index \
39+
--prefix "${PREFIX}" \
40+
-vv
3141

3242
# Copy wheel package
3343
if [[ -v WHEELS_OUTPUT_FOLDER ]]; then

0 commit comments

Comments
 (0)