Skip to content

Commit c27e704

Browse files
author
Diptorup Deb
authored
Merge pull request #1132 from IntelPython/main
Merge into GOLD
2 parents d7afd57 + 1d09550 commit c27e704

File tree

26 files changed

+428
-181
lines changed

26 files changed

+428
-181
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
python: ['3.8', '3.9', '3.10']
29+
python: ['3.9', '3.10', '3.11']
3030
os: [ubuntu-latest, windows-latest]
3131

3232
runs-on: ${{ matrix.os }}
@@ -93,7 +93,7 @@ jobs:
9393
strategy:
9494
fail-fast: false
9595
matrix:
96-
python: ['3.8', '3.9', '3.10']
96+
python: ['3.9', '3.10', '3.11']
9797
os: [ubuntu-20.04, ubuntu-latest, windows-latest]
9898
experimental: [false]
9999

@@ -157,8 +157,9 @@ jobs:
157157
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
158158
159159
# We want to make sure that all dependecies install automatically.
160+
# intel::intel-opencl-rt is needed for set-intel-ocl-icd-registry.ps1
160161
- name: Install builded package
161-
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} opencl_rt pytest -c ${{ env.CHANNEL_PATH }}
162+
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} intel::intel-opencl-rt pytest -c ${{ env.CHANNEL_PATH }}
162163

163164
- name: Setup OpenCL CPU device
164165
if: runner.os == 'Windows'
@@ -199,7 +200,7 @@ jobs:
199200

200201
strategy:
201202
matrix:
202-
python: ['3.8', '3.9', '3.10']
203+
python: ['3.9', '3.10', '3.11']
203204
os: [ubuntu-latest, windows-latest]
204205

205206
runs-on: ${{ matrix.os }}

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
oneapi_version:
2323
default: '2023.1.0.46401'
2424
python_versions:
25-
default: '["3.8", "3.9", "3.10", "3.11"]'
25+
default: '["3.9", "3.10", "3.11"]'
2626
buildkit_version:
2727
default: '0.11.6'
2828

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,26 @@ 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.21.3] - 2023-09-21
8+
9+
### Fixed
10+
* Mangled kernel name generation (#1112)
11+
12+
### Added
13+
* Python 3.11 support (#1123)
14+
* Security policy (#1117)
15+
* scikit-build to build native extensions (#1107, #1127)
16+
17+
### Changed
18+
* The data model used by the DpnpNdArray type for kernel functions(#1118)
19+
20+
### Removed
21+
* Support for Python 3.8 (#1113)
22+
723
## [0.21.2] - 2023-08-07
824

925
### Fixed
10-
* Bugs (#1068, #774) in atomic addition caused due to imporper floating point atomic emulation. (#1103)
26+
* Bugs (#1068, #774) in atomic addition caused due to improper floating point atomic emulation. (#1103)
1127

1228
### Changed
1329
* Updated documentation and user guides (#1097, #879)

CMakeLists.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#[=======================================================================[.rst:
2+
numba_dpex
3+
-----------
4+
5+
A cmake file to compile the ``_dpexrt_python`` Python C extension for
6+
``numba_dpex``. You can build this component locally in-place by invoking these
7+
commands:
8+
9+
.. code-block:: cmake
10+
~$ cmake .
11+
~$ cmake --build . --verbose
12+
13+
Once compiled, the _dpexrt_python library will be in ``numba_dpex/core/runtime``
14+
folder.
15+
16+
This ``CMakeLists.txt`` file will be used by ``setup.py``.
17+
#]=======================================================================]
18+
19+
cmake_minimum_required(VERSION 3.21...3.27 FATAL_ERROR)
20+
21+
message(STATUS "NUMBA_DPEX_VERSION=" "${NUMBA_DPEX_VERSION}")
22+
23+
project(numba-dpex
24+
DESCRIPTION "An extension for Numba to add data-parallel offload capability"
25+
VERSION ${NUMBA_DPEX_VERSION}
26+
)
27+
28+
if(IS_INSTALL)
29+
install(DIRECTORY numba_dpex
30+
DESTINATION ${CMAKE_INSTALL_PREFIX}
31+
FILES_MATCHING PATTERN "*.py")
32+
endif()
33+
34+
add_subdirectory(numba_dpex)

MANIFEST.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
include MANIFEST.in
22
include README.md setup.py LICENSE
33

4-
recursive-include numba_dpex *.cl
5-
recursive-include numba_dpex *.spir
6-
74
include versioneer.py
85
include numba_dpex/_version.py
96

SECURITY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Security Policy
2+
3+
## Report a Vulnerability
4+
5+
Please report security issues or vulnerabilities to the [Intel® Security Center].
6+
7+
For more information on how Intel® works to resolve security issues, see
8+
[Vulnerability Handling Guidelines].
9+
10+
[Intel® Security Center]:https://www.intel.com/content/www/us/en/security-center/default.html
11+
12+
[Vulnerability Handling Guidelines]:https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html

build-environment.yml

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

conda-recipe/meta.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ requirements:
1717
host:
1818
- python
1919
- setuptools >=63.*
20-
- numba 0.57*
20+
- scikit-build >=0.15*
21+
- cmake >=3.26*
22+
- numba >=0.57*
2123
- dpctl >=0.14*
2224
- dpnp >=0.11*
2325
- dpcpp-llvm-spirv

docs/source/getting_started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Building from source
3737
--------------------
3838

3939
``numba-dpex`` can be built from source using either ``conda-build`` or
40-
``setuptools``.
40+
``setuptools`` (with ``scikit-build`` backend).
4141

4242
Steps to build using ``conda-build``:
4343

@@ -70,7 +70,7 @@ first step.
7070
7171
# Create a conda environment that hass needed dependencies installed
7272
conda create -n numba-dpex-env \
73-
dpctl dpnp numba dpcpp-llvm-spirv llvmdev pytest \
73+
scikit-build cmake dpctl dpnp numba dpcpp-llvm-spirv llvmdev pytest \
7474
-c intel -c conda-forge
7575
# Activate the environment
7676
conda activate numba-dpex-env

environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ dependencies:
1616
- mkl >=2021.3.0 # for dpnp
1717
- dpcpp-llvm-spirv
1818
- packaging
19+
- scikit-build >=0.15*
20+
- cmake >=3.26*
1921
- pytest
2022
- pip
2123
- pip:

0 commit comments

Comments
 (0)