Skip to content

Commit 7ddd835

Browse files
committed
create missing parent keys for the OpenCL vendors registry key
1 parent 95dd48d commit 7ddd835

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/os-llvm-sycl-build-windows.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ jobs:
9090
# runner steps are elevated, so the loader ignores OCL_ICD_FILENAMES
9191
$vendors = 'HKLM:\SOFTWARE\Khronos\OpenCL\Vendors'
9292
if (-not (Test-Path $vendors)) {
93-
New-Item -Path $vendors | Out-Null
93+
# -Force creates the missing parent keys
94+
New-Item -Path $vendors -Force | Out-Null
9495
}
9596
New-ItemProperty -Path $vendors -Name (Join-Path $oclcpu 'intelocl64.dll') `
9697
-PropertyType DWord -Value 0 -Force | Out-Null

0 commit comments

Comments
 (0)