@@ -194,6 +194,11 @@ jobs:
194
194
with :
195
195
auto-activate-base : true
196
196
activate-environment : " "
197
+ - name : Checkout repo
198
+ # We do not need the checkout, but it sets up GITHUB_WORKSPACE env. variable
199
+ uses : actions/checkout@v2
200
+ with :
201
+ fetch-depth : 0
197
202
- name : Install conda-build
198
203
# Needed to be able to run conda index
199
204
run : conda install conda-build
@@ -206,7 +211,7 @@ jobs:
206
211
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels --info --json > ${{ env.GITHUB_WORKSPACE }}\ver.json
207
212
more ${{ env.GITHUB_WORKSPACE }}\ver.json
208
213
- name : Collect dependencies
209
- shell : cmd
214
+ shell : cmd /C CALL {0}
210
215
run : |
211
216
@ECHO ON
212
217
copy /Y ${{ env.GITHUB_WORKSPACE }}\ver.json .
@@ -230,7 +235,7 @@ jobs:
230
235
- name : Install opencl_rt
231
236
run : conda install opencl_rt -c intel --override-channels
232
237
- name : Install dpctl
233
- shell : cmd
238
+ shell : cmd /C CALL {0}
234
239
run : |
235
240
@ECHO ON
236
241
copy /Y ${{ env.GITHUB_WORKSPACE }}\ver.json .
@@ -239,9 +244,10 @@ jobs:
239
244
SET PACKAGE_VERSION=%%F
240
245
)
241
246
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
242
- # Test installed packages
247
+ REM Test installed packages
243
248
conda list
244
249
- name : Add library
250
+ shell : pwsh
245
251
run : |
246
252
echo "OCL_ICD_FILENAMES=C:\Miniconda\Library\lib\intelocl64.dll" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
247
253
try {$list = Get-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors | Select-Object -ExpandProperty Property } catch {$list=@()}
@@ -274,16 +280,16 @@ jobs:
274
280
(Get-Content $cl_cfg) -replace '^CL_CONFIG_TBB_DLL_PATH =', 'CL_CONFIG_TBB_DLL_PATH = C:\Miniconda\Library\bin' | Set-Content $cl_cfg
275
281
}
276
282
- name : Smoke test
283
+ shell : cmd /C CALL {0}
277
284
run : |
278
285
set SYCL_ENABLE_HOST_DEVICE=1
279
- & { [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Miniconda\Library\bin\", [EnvironmentVariableTarget]::Machine) }
280
286
python -c "import dpctl; dpctl.lsplatform()"
281
287
python -c "import dpctl; print(dpctl.get_devices(backend='opencl', device_type='gpu'))"
282
288
python -c "import dpctl; print(dpctl.get_num_devices(backend='opencl', device_type='gpu'))"
283
289
- name : Run tests
290
+ shell : cmd /C CALL {0}
284
291
run : |
285
292
set SYCL_ENABLE_HOST_DEVICE=1
286
- & { [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Miniconda\Library\bin\", [EnvironmentVariableTarget]::Machine) }
287
293
python -m pytest -p no:faulthandler --pyargs ${{ env.MODULE_NAME }}
288
294
289
295
upload_linux :
0 commit comments