From bf42dfd877c1c22ab32c8abf68d2206cabc2c627 Mon Sep 17 00:00:00 2001 From: Vaibhav Awale Date: Mon, 16 Oct 2023 14:49:06 +0200 Subject: [PATCH] Switch to modern OpenCL CPU runtime on Windows Windows CI tests are using older version of intel OpenCL CPU runtime. This older version is no longer supported in favor of intel OneAPI stack. This commit updates windows test to use OneAPI OpenCL CPU runtime. Ubuntu tests were updated to use intel OneAPI OpenCL CPU runtime in commit https://github.com/zivid/zivid-python/commit/b1be7bce34cb609a14cbbb1c192e391ae5f35dbe --- continuous-integration/windows/setup.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/continuous-integration/windows/setup.py b/continuous-integration/windows/setup.py index ad844286..a744d15f 100644 --- a/continuous-integration/windows/setup.py +++ b/continuous-integration/windows/setup.py @@ -28,13 +28,13 @@ def _install_intel_opencl_runtime(): import requests # pylint: disable=import-outside-toplevel with tempfile.TemporaryDirectory() as temp_dir: - intel_opencl_runtime_url = "https://www.dropbox.com/s/09bk2nx31hzrupf/opencl_runtime_18.1_x64_setup-20200625-090300.msi?raw=1" - print("Downloading {}".format(intel_opencl_runtime_url), flush=True) - opencl_runtime = Path(temp_dir) / "opencl_runtime.msi" - response = requests.get(intel_opencl_runtime_url, timeout=(25, 600)) - opencl_runtime.write_bytes(response.content) - print("Installing {}".format(opencl_runtime), flush=True) - run_process(("msiexec", "/i", str(opencl_runtime), "/passive")) + intel_oneapi_opencl_installer_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/faf10bb4-a1b3-46cf-ae0b-986b419e1b1c-opencl/w_opencl_runtime_p_2023.2.0.49500.exe" + print("Downloading {}".format(intel_oneapi_opencl_installer_url), flush=True) + opencl_runtime_installer = Path(temp_dir) / "opencl_runtime_installer.exe" + response = requests.get(intel_oneapi_opencl_installer_url, timeout=(25, 600)) + opencl_runtime_installer.write_bytes(response.content) + print("Installing {}".format(opencl_runtime_installer), flush=True) + run_process((str(opencl_runtime_installer), "--silent")) def _write_zivid_cpu_configuration_file():