File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -269,22 +269,10 @@ jobs:
269
269
- name : Configure Intel OpenCL CPU RT
270
270
shell : pwsh
271
271
run : |
272
- if (-not (Test-Path -Path HKLM:\SOFTWARE\Khronos)) {
273
- New-Item -Path HKLM:\SOFTWARE\Khronos
274
- }
275
- if (-not (Test-Path -Path HKLM:\SOFTWARE\Khronos\OpenCL)) {
276
- New-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL
277
- }
278
- if (-not (Test-Path -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors)) {
279
- New-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors
280
- }
281
- $conda_env_library = "$env:CONDA_PREFIX\Library"
282
- New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors -Name $conda_env_library\lib\intelocl64.dll -Value 0
283
- Write-Host $(Get-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors)
284
- # Variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
285
- $cl_cfg="$conda_env_library\lib\cl.cfg"
286
- Write-Output $cl_cfg
287
- (Get-Content $cl_cfg) -replace '^CL_CONFIG_TBB_DLL_PATH =', "CL_CONFIG_TBB_DLL_PATH = $conda_env_library\bin" | Set-Content $cl_cfg
272
+ $script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
273
+ &$script_path
274
+ # Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
275
+ $cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
288
276
Get-Content -Tail 5 -Path $cl_cfg
289
277
- name : Smoke test, step 1
290
278
shell : cmd /C CALL {0}
You can’t perform that action at this time.
0 commit comments