Skip to content

Commit dc94b7e

Browse files
authored
Merge pull request #1483 from IntelPython/fix/github-workflows
Switch workflows to not use intel channel.
2 parents e80fdd0 + 623a204 commit dc94b7e

File tree

7 files changed

+31
-43
lines changed

7 files changed

+31
-43
lines changed

.github/workflows/conda-package.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
PACKAGE_NAME: numba-dpex
1717
MODULE_NAME: numba_dpex
1818
# There is a separate action that removes defaults.
19-
CHANNELS: 'dppy/label/dev,conda-forge,intel,numba,nodefaults'
19+
CHANNELS: 'dppy/label/dev,conda-forge,numba,nodefaults'
2020
VER_JSON_NAME: 'version.json'
2121
VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
2222
VER_SCRIPT2: "d = j['numba-dpex'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
@@ -161,23 +161,20 @@ jobs:
161161
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.CHANNEL_PATH }} --override-channels --info --json > ${{ env.VER_JSON_PATH }}
162162
cat ${{ env.VER_JSON_PATH }}
163163
164+
- name: Print dependencies
165+
run: |
166+
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.CHANNEL_PATH }} --override-channels --info
167+
164168
- name: Collect dependencies
165169
shell: bash -l {0}
166170
run: |
167171
export PACKAGE_VERSION=$(python -c "${{ env.VER_SCRIPT1 }} ${{ env.VER_SCRIPT2 }}")
168172
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
169173
170174
# We want to make sure that all dependecies install automatically.
171-
# intel::intel-opencl-rt is needed for set-intel-ocl-icd-registry.ps1
175+
# intel-opencl-rt is needed for set-intel-ocl-icd-registry.ps1
172176
- name: Install built package
173-
run: conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} intel::intel-opencl-rt -c ${{ env.CHANNEL_PATH }}
174-
175-
- name: Setup OpenCL CPU device
176-
if: runner.os == 'Windows'
177-
shell: pwsh
178-
run: |
179-
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
180-
&$script_path
177+
run: conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} intel-opencl-rt -c ${{ env.CHANNEL_PATH }}
181178

182179
- name: List installed packages
183180
run: conda list

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,15 @@ To install `numba_dpex` from the Intel(R) channel on Anaconda
6868
cloud, use the following command:
6969

7070
```bash
71-
conda install numba-dpex -c intel -c conda-forge
71+
conda install numba-dpex -c conda-forge
7272
```
7373

7474
## Pip
7575

76-
The `numba_dpex` can be installed using `pip` obtaining wheel packages either from PyPi or from Intel(R) channel on Anaconda.
77-
To install `numba_dpex` wheel package from Intel(R) channel on Anaconda, run the following command:
76+
The `numba_dpex` can be installed using `pip` obtaining wheel packages either from PyPi.
7877

7978
```bash
80-
python -m pip install --index-url https://pypi.anaconda.org/intel/simple numba-dpex
79+
python -m pip install numba-dpex
8180
```
8281

8382
# Contributing

conda-recipe/meta.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
{% set required_compiler_version = "2024.0" %}
2-
{% set excluded_compiler_version1 = "2024.0.1" %}
3-
{% set excluded_compiler_version2 = "2024.0.2" %}
4-
{% set excluded_compiler_version3 = "2024.0.3" %}
1+
{% set required_compiler_version = "2024.2.0" %}
52

63
{% set pyproject = load_file_data('pyproject.toml') %}
74
{% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}
@@ -21,18 +18,17 @@ build:
2118
requirements:
2219
# TODO: keep in sync with /pyproject.toml
2320
build:
24-
- {{ compiler('cxx') }}
25-
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
26-
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
21+
- {{ compiler('c') }}
22+
- {{ compiler('dpcpp') }} >={{ required_compiler_version }}
2723
# Minimal supported version of sysroot (which is version of glibc) to
2824
# have compatibility with wider range of linux distributions.
2925
# 2.28 is the minimal supported version by dpcpp
3026
- sysroot_linux-64 =2.28 # [linux]
3127
host:
3228
- python
3329
- pip >=24.0
34-
- dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
35-
- dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
30+
- dpcpp-cpp-rt
31+
- intel-cmplr-lib-rt
3632
# ensure we are using latest version of setuptools, since we don't need
3733
# editable environments for release.
3834
- setuptools >=69
@@ -53,17 +49,12 @@ requirements:
5349
# pin_compatible at run section.
5450
- dpcpp-llvm-spirv >={{ required_compiler_version }}
5551
run:
56-
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
57-
- {{ pin_compatible('intel-cmplr-lib-rt', min_pin='x.x', max_pin='x') }}
5852
# TODO: pick up min version from dep
5953
- {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x') }}
6054
- {{ pin_compatible('dpnp', min_pin='x.x.x', max_pin='x.x') }}
6155
- {{ pin_compatible('dpctl', min_pin='x.x.x', max_pin='x.x') }}
6256
- {{ pin_compatible('numba', min_pin='x.x.x', max_pin='x.x') }}
6357
- {{ pin_compatible('llvmlite', min_pin='x.x.x', max_pin='x.x') }}
64-
# TODO: set max pin +2 from minor version
65-
# https://numpy.org/neps/nep-0023-backwards-compatibility.html#nep23
66-
- {{ pin_compatible('numpy', min_pin='x.x.x', max_pin='x') }}
6758
- python
6859

6960
test:

docs/source/getting_started.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ to get the latest production releases.
2020
2121
conda create -n numba-dpex-env \
2222
numba-dpex dpnp dpctl dpcpp-llvm-spirv \
23-
-c intel -c conda-forge
23+
-c conda-forge
2424
2525
To try out the bleeding edge, the latest packages built from tip of the main
2626
source trunk can be installed from the ``dppy/label/dev`` conda channel.
@@ -29,7 +29,7 @@ source trunk can be installed from the ``dppy/label/dev`` conda channel.
2929
3030
conda create -n numba-dpex-env \
3131
numba-dpex dpnp dpctl dpcpp-llvm-spirv \
32-
-c dppy/label/dev -c intel -c conda-forge
32+
-c dppy/label/dev -c conda-forge
3333
3434
3535
@@ -53,7 +53,7 @@ Steps to build using ``conda-build``:
5353

5454
.. code-block:: bash
5555
56-
conda build conda-recipe -c intel -c conda-forge
56+
conda build conda-recipe -c conda-forge
5757
5858
3. Install the conda package
5959

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

environment/coverage.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@ name: dev
22
channels:
33
- dppy/label/dev
44
- numba
5-
- intel
65
- conda-forge
76
- nodefaults
87
dependencies:
98
- libffi
10-
- gxx_linux-64
11-
- dpcpp_linux-64>=2024.0,!=2024.0.1,!=2024.0.2
12-
- numba==0.58*
9+
- gcc_linux-64
10+
- dpcpp_linux-64>=2024.2
11+
- sysroot_linux-64=2.28
12+
- numba==0.59*
1313
- dpctl
1414
- dpnp
1515
- dpcpp-llvm-spirv
16-
- opencl_rt
16+
- intel-opencl-rt
1717
- coverage
1818
- pytest
1919
- pytest-cov
2020
- pytest-xdist
2121
- pexpect
2222
- scikit-build>=0.15*
2323
- cmake>=3.26*
24+
- ninja
2425
- versioneer

environment/docs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ name: dpex-docs-dev
22
channels:
33
- dppy/label/dev
44
- numba
5-
- intel
65
- conda-forge
76
- nodefaults
87
dependencies:
98
- libffi
10-
- gxx_linux-64
11-
- dpcpp_linux-64>=2024.0,!=2024.0.1,!=2024.0.2
9+
- gcc_linux-64
10+
- dpcpp_linux-64>=2024.2
11+
- sysroot_linux-64=2.28
1212
- numba==0.59*
1313
- scikit-build>=0.15*
1414
- cmake>=3.26*
15+
- ninja
1516
- dpctl>=0.16*
1617
- dpnp>=0.14*
1718
- dpcpp-llvm-spirv
18-
- opencl_rt
19+
- intel-opencl-rt
1920
- versioneer
2021
- pip
2122
- pip:

environment/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: dev
22
channels:
33
- dppy/label/dev
44
- numba
5-
- intel
65
- conda-forge
76
- nodefaults
87
dependencies:
@@ -11,7 +10,7 @@ dependencies:
1110
- dpctl>=0.16*
1211
- dpnp>=0.14*
1312
- dpcpp-llvm-spirv
14-
- opencl_rt
13+
- intel-opencl-rt
1514
- coverage
1615
- pytest
1716
- pytest-cov

0 commit comments

Comments
 (0)