Skip to content

Commit 3b31073

Browse files
Removed copying of OpenCL.dll from Python layout to System32
This step is not needed, since OpenCL.dll is on the search path that Python process is using for library loading.
1 parent 910d012 commit 3b31073

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/conda-package.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ jobs:
262262
REM pip install --no-cache-dir brotli
263263
echo "Value of CONDA enviroment variable was: " %CONDA%
264264
conda list
265-
- name: Add library
265+
- name: Configure Intel OpenCL CPU RT
266266
shell: pwsh
267267
run: |
268268
$conda_env_library = "$env:CONDA_PREFIX\Library"
@@ -281,17 +281,6 @@ jobs:
281281
New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors -Name $conda_env_library\lib\intelocl64.dll -Value 0
282282
try {$list = Get-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors | Select-Object -ExpandProperty Property } catch {$list=@()}
283283
Write-Output $(Get-Item -Path HKLM:\SOFTWARE\Khronos\OpenCL\Vendors)
284-
# Now copy OpenCL.dll into system folder
285-
$system_ocl_icd_loader="C:\Windows\System32\OpenCL.dll"
286-
$python_ocl_icd_loader="$conda_env_library\bin\OpenCL.dll"
287-
Copy-Item -Path $python_ocl_icd_loader -Destination $system_ocl_icd_loader
288-
if (Test-Path -Path $system_ocl_icd_loader) {
289-
Write-Output "$system_ocl_icd_loader has been copied"
290-
$acl = Get-Acl $system_ocl_icd_loader
291-
Write-Output $acl
292-
} else {
293-
Write-Output "OCL-ICD-Loader was not copied"
294-
}
295284
# Variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
296285
$cl_cfg="$conda_env_library\lib\cl.cfg"
297286
Write-Output $cl_cfg

0 commit comments

Comments
 (0)