File tree Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,26 @@ jobs:
135
135
environment-file : ${{ env.environment-file }}
136
136
activate-environment : ' docs'
137
137
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==0.20.0dev0
140
153
141
- - name : Conda list
142
- run : mamba list
154
+ - name : Conda info
155
+ run : |
156
+ mamba info
157
+ mamba list
143
158
144
159
- name : Build library
145
160
run : |
Original file line number Diff line number Diff line change 13
13
environment-file-name : ' environment.yml'
14
14
environment-file-loc : ' ${{ github.workspace }}/environments'
15
15
build-with-oneapi-env : ' environments/build_with_oneapi.yml'
16
+ dpctl-pkg-env : ' environments/dpctl_pkg.yml'
16
17
oneapi-pkgs-env : ' environments/oneapi_pkgs.yml'
17
18
test-env-name : ' test_onemkl_interfaces'
18
19
rerun-tests-on-failure : ' true'
47
48
48
49
- name : Merge conda env files
49
50
run : |
50
- conda-merge ${{ env.build-with-oneapi-env }} ${{ env.oneapi-pkgs-env }} > ${{ env.environment-file }}
51
+ conda-merge ${{ env.build-with-oneapi-env }} ${{ env.dpctl-pkg-env }} ${{ env.oneapi-pkgs-env }} > ${{ env.environment-file }}
52
+ cat ${{ env.environment-file }}
51
53
52
54
- name : Upload artifact
53
55
uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Original file line number Diff line number Diff line change 94
94
environment-file : ${{ env.environment-file }}
95
95
activate-environment : ' coverage'
96
96
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==0.20.0dev0
112
+
97
113
- name : Conda info
98
114
run : |
99
115
mamba info
Original file line number Diff line number Diff line change 1
1
name : Packages to build DPNP with OneAPI env activated
2
2
channels :
3
- - dppy/label/dev
4
3
- conda-forge
5
4
dependencies :
6
5
- cmake
7
6
- cython
8
- - dpctl>=0.19.0dev0
9
7
- ninja
10
8
- numpy
11
9
- pytest
Original file line number Diff line number Diff line change
1
+ name : Install dpctl package
2
+ channels :
3
+ - dppy/label/dev
4
+ dependencies :
5
+ - dpctl>=0.20.0dev0
You can’t perform that action at this time.
0 commit comments