Skip to content

Commit e615596

Browse files
authored
Merge pull request #1279 from IntelPython/use_dpcpp_2024.1
Allow use of latest dpcpp compiler package
2 parents da3d1a0 + 5e0e2b1 commit e615596

File tree

6 files changed

+108
-97
lines changed

6 files changed

+108
-97
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
VER_JSON_NAME: 'version.json'
1919
VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
2020
VER_SCRIPT2: "d = j['numba-dpex'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
21+
PYTHONIOENCODING: 'utf-8'
2122

2223
jobs:
2324
build:
@@ -172,7 +173,7 @@ jobs:
172173
# We want to make sure that all dependecies install automatically.
173174
# intel::intel-opencl-rt is needed for set-intel-ocl-icd-registry.ps1
174175
- name: Install builded package
175-
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} intel::intel-opencl-rt pytest-cov -c ${{ env.CHANNEL_PATH }}
176+
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} intel::intel-opencl-rt pytest-cov conda-tree -c ${{ env.CHANNEL_PATH }}
176177

177178
- name: Install numba-mlir
178179
if: matrix.use_mlir
@@ -199,6 +200,9 @@ jobs:
199200
run: |
200201
python -c "import dpcpp_llvm_spirv as p; print(p.get_llvm_spirv_path())"
201202
203+
- name: Check dependency tree
204+
run: conda-tree depends -t numba-dpex
205+
202206
- name: Smoke test
203207
env:
204208
NUMBA_DPEX_USE_MLIR: ${{ matrix.use_mlir && '1' || '0' }}

conda-recipe/meta.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{% set required_compiler_version = "2023.2" %}
2+
{% set excluded_compiler_version1 = "2024.0.1" %}
3+
{% set excluded_compiler_version2 = "2024.0.2" %}
4+
15
package:
26
name: numba-dpex
37
version: {{ GIT_DESCRIBE_TAG }}
@@ -13,8 +17,12 @@ build:
1317
requirements:
1418
build:
1519
- {{ compiler('cxx') }}
16-
- {{ compiler('dpcpp') }} <2024.0.1 # [not osx]
20+
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [not osx]
21+
# specific version of sysroot required by dpcpp, but 2024.0.0 package
22+
# does not have it in meta data
23+
- sysroot_linux-64 >=2.28 # [linux]
1724
host:
25+
- dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }}
1826
- python
1927
- setuptools >=63.*
2028
- scikit-build >=0.15*
@@ -26,6 +34,7 @@ requirements:
2634
- dpcpp-llvm-spirv
2735
- wheel
2836
run:
37+
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
2938
- python
3039
- numba >=0.57*
3140
- dpctl >=0.14*

environment.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
name: dev
22
channels:
3-
- defaults
4-
- dppy/label/dev
5-
- numba
6-
- intel
7-
- numba/label/dev
8-
- nodefaults
3+
- defaults
4+
- dppy/label/dev
5+
- numba
6+
- intel
7+
- numba/label/dev
8+
- nodefaults
99
dependencies:
10-
- python=3.9
11-
- gxx_linux-64
12-
- dpcpp_linux-64==2024.0.0
13-
- numba ==0.58*
14-
- dpctl >=0.14*
15-
- dpnp >=0.11*
16-
- mkl >=2021.3.0 # for dpnp
17-
- dpcpp-llvm-spirv
18-
- packaging
19-
- scikit-build >=0.15*
20-
- cmake >=3.26*
21-
- pytest
22-
- pip
23-
- pip:
24-
- coverage
25-
- pre-commit
26-
- flake8
27-
- black==20.8b1
28-
- pytest-cov
29-
- pytest-xdist
30-
- pexpect
10+
- python=3.9
11+
- gxx_linux-64
12+
- dpcpp_linux-64>=2023.2,!=2024.0.1,!=2024.0.2
13+
- numba ==0.58*
14+
- dpctl >=0.14*
15+
- dpnp >=0.11*
16+
- mkl >=2021.3.0 # for dpnp
17+
- dpcpp-llvm-spirv
18+
- packaging
19+
- scikit-build >=0.15*
20+
- cmake >=3.26*
21+
- pytest
22+
- pip
23+
- pip:
24+
- coverage
25+
- pre-commit
26+
- flake8
27+
- black==20.8b1
28+
- pytest-cov
29+
- pytest-xdist
30+
- pexpect
3131
variables:
3232
CHANNELS: -c defaults -c numba -c intel -c numba/label/dev -c dppy/label/dev --override-channels
3333
CHANNELS_DEV: -c dppy/label/dev -c defaults -c numba -c intel -c numba/label/dev --override-channels

environment/coverage.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: dev
22
channels:
3-
- dppy/label/dev
4-
- numba
5-
- intel
6-
- conda-forge
7-
- nodefaults
3+
- dppy/label/dev
4+
- numba
5+
- intel
6+
- conda-forge
7+
- nodefaults
88
dependencies:
9-
- libffi
10-
- gxx_linux-64
11-
- dpcpp_linux-64==2024.0.0
12-
- numba==0.58*
13-
- dpctl
14-
- dpnp
15-
- dpcpp-llvm-spirv
16-
- opencl_rt
17-
- coverage
18-
- pytest
19-
- pytest-cov
20-
- pytest-xdist
21-
- pexpect
22-
- scikit-build>=0.15*
23-
- cmake>=3.26*
9+
- libffi
10+
- gxx_linux-64
11+
- dpcpp_linux-64>=2023.2,!=2024.0.1,!=2024.0.2
12+
- numba==0.58*
13+
- dpctl
14+
- dpnp
15+
- dpcpp-llvm-spirv
16+
- opencl_rt
17+
- coverage
18+
- pytest
19+
- pytest-cov
20+
- pytest-xdist
21+
- pexpect
22+
- scikit-build>=0.15*
23+
- cmake>=3.26*

environment/docs.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: dpex-docs-dev
22
channels:
3-
- dppy/label/dev
4-
- numba
5-
- intel
6-
- conda-forge
7-
- nodefaults
3+
- dppy/label/dev
4+
- numba
5+
- intel
6+
- conda-forge
7+
- nodefaults
88
dependencies:
9-
- libffi
10-
- gxx_linux-64
11-
- dpcpp_linux-64==2024.0.0
12-
- numba==0.58*
13-
- scikit-build>=0.15*
14-
- cmake>=3.26*
15-
- dpctl
16-
- dpnp
17-
- dpcpp-llvm-spirv
18-
- opencl_rt
19-
- pip
20-
- pip:
21-
- sphinx
22-
- autodoc # there is no conda package
23-
- recommonmark
24-
- sphinx-rtd-theme
25-
- sphinxcontrib-apidoc
26-
- sphinxcontrib-googleanalytics
27-
- sphinxcontrib.programoutput
28-
- pydata-sphinx-theme
29-
- myst-parser
9+
- libffi
10+
- gxx_linux-64
11+
- dpcpp_linux-64>=2023.2,!=2024.0.1,!=2024.0.2
12+
- numba==0.58*
13+
- scikit-build>=0.15*
14+
- cmake>=3.26*
15+
- dpctl
16+
- dpnp
17+
- dpcpp-llvm-spirv
18+
- opencl_rt
19+
- pip
20+
- pip:
21+
- sphinx
22+
- autodoc # there is no conda package
23+
- recommonmark
24+
- sphinx-rtd-theme
25+
- sphinxcontrib-apidoc
26+
- sphinxcontrib-googleanalytics
27+
- sphinxcontrib.programoutput
28+
- pydata-sphinx-theme
29+
- myst-parser

environment/pre-commit.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
name: dev
22
channels:
3-
- dppy/label/dev
4-
- numba
5-
- intel
6-
- conda-forge
7-
- nodefaults
3+
- dppy/label/dev
4+
- numba
5+
- intel
6+
- conda-forge
7+
- nodefaults
88
dependencies:
9-
- libffi
10-
- gxx_linux-64
11-
- dpcpp_linux-64==2024.0.0
12-
- numba==0.58*
13-
- dpctl
14-
- dpnp
15-
- dpcpp-llvm-spirv
16-
- opencl_rt
17-
- coverage
18-
- pytest
19-
- pytest-cov
20-
- pytest-xdist
21-
- pexpect
22-
- scikit-build>=0.15*
23-
- cmake>=3.26*
24-
- pre-commit
25-
- pylint
9+
- libffi
10+
- numba==0.58*
11+
- dpctl
12+
- dpnp
13+
- dpcpp-llvm-spirv
14+
- opencl_rt
15+
- coverage
16+
- pytest
17+
- pytest-cov
18+
- pytest-xdist
19+
- pexpect
20+
- scikit-build>=0.15*
21+
- cmake>=3.26*
22+
- pre-commit
23+
- pylint

0 commit comments

Comments
 (0)