Skip to content

Commit a3892cf

Browse files
committed
Install windows icd 3
1 parent 1602e01 commit a3892cf

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,26 @@ jobs:
4242
sudo apt update -qq
4343
sudo apt install -qq ocl-icd-opencl-dev pocl-opencl-icd
4444
45-
- name: Install OpenCL - Windows
45+
- name: Install OpenCL - Windows 1
4646
if: matrix.os == 'windows-2022'
4747
run: |
4848
curl -o opencl-installer.exe 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6dccdb7-b503-41ea-bd4b-a78e9c2d8dd6/w_opencl_runtime_p_2025.1.0.972.exe'
4949
./opencl-installer.exe --s --x --f ocl
5050
cp "./ocl/w_opencl_runtime_p_2025.1.0.972.msi" "./opencl-rt.msi"
51-
echo "Start Msiexec"
52-
msiexec /i "opencl-rt.msi" /qn /passive /quiet
53-
echo "End Msiexec"
54-
51+
# echo "Start Msiexec"
52+
# msiexec /i "opencl-rt.msi" /qn /passive /quiet
53+
# echo "End Msiexec"
54+
55+
- name: Install OpenCL - Windows 2
56+
shell: pwsh
57+
if: matrix.os == 'windows-2022'
58+
run: |
59+
$file = "opencl-rt.msi"
60+
$log = "install.log"
61+
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
62+
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
63+
$procMain.WaitForExit()
64+
$procLog.Kill()
5565
5666
- name: Install OpenCL - Ubuntu
5767
if: matrix.os == 'ubuntu-22.04'

0 commit comments

Comments
 (0)