Skip to content

Commit 7a45a15

Browse files
committed
Install dpctl via pip manager in coverage and docs workflows
1 parent c2a7536 commit 7a45a15

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,26 @@ jobs:
135135
environment-file: ${{ env.environment-file }}
136136
activate-environment: 'docs'
137137

138-
- name: Conda info
139-
run: mamba info
138+
# We can't install dpctl as a conda package when the environment is created through
139+
# installing of Intel OneAPI packages because the dpctl conda package has a runtime
140+
# dependency on DPC++ RT one. Whereas the DPC++ RT package has been already installed
141+
# by the apt command above and its version has been matched with the DPC++ compiler.
142+
# In case where we install the DPC++ compiler with the apt (including DPC++ RT) and
143+
# install the DPC++ RT conda package while resolving dependencies, this can lead
144+
# to a versioning error, i.e. compatibility issue as the DPC++ compiler only guarantees
145+
# backwards compatibility, not forward compatibility (DPC++ RT may not run a binary built
146+
# with a newer version of the DPC++ compiler).
147+
# Installing dpctl via the pip manager has no such limitation, as the package has no
148+
# run dependency on the DPC++ RT pip package, so this is why the step is necessary here.
149+
- name: Install dpctl
150+
if: env.oneapi-pkgs-env == ''
151+
run: |
152+
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl
140153
141-
- name: Conda list
142-
run: mamba list
154+
- name: Conda info
155+
run: |
156+
mamba info
157+
mamba list
143158
144159
- name: Build library
145160
run: |

.github/workflows/generate_coverage.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,22 @@ jobs:
9494
environment-file: ${{ env.environment-file }}
9595
activate-environment: 'coverage'
9696

97+
# We can't install dpctl as a conda package when the environment is created through
98+
# installing of Intel OneAPI packages because the dpctl conda package has a runtime
99+
# dependency on DPC++ RT one. Whereas the DPC++ RT package has beedn already installed
100+
# by the apt command above and its version has been matched with the DPC++ compiler.
101+
# In case where we install the DPC++ compiler with the apt (including DPC++ RT) and
102+
# install the DPC++ RT conda package while resolving dependencies, this can lead
103+
# to a versioning error, i.e. compatibility issue as the DPC++ compiler only guarantees
104+
# backwards compatibility, not forward compatibility (DPC++ RT may not run a binary built
105+
# with a newer version of the DPC++ compiler).
106+
# Installing dpctl via the pip manager has no such limitation, as the package has no
107+
# run dependency on the DPC++ RT pip package, so this is why the step is necessary here.
108+
- name: Install dpctl
109+
if: env.oneapi-pkgs-env == ''
110+
run: |
111+
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl
112+
97113
- name: Conda info
98114
run: |
99115
mamba info

environments/build_with_oneapi.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Packages to build DPNP with OneAPI env activated
22
channels:
3-
- dppy/label/dev
43
- conda-forge
54
dependencies:
65
- cmake
76
- cython
8-
- dpctl>=0.19.0dev0
97
- ninja
108
- numpy
119
- pytest

0 commit comments

Comments
 (0)