From d9b9a3c56d5b7b0abfef05f83ae0fe3ad4a2bdf1 Mon Sep 17 00:00:00 2001 From: Xavier Hallade Date: Fri, 23 Jun 2023 11:29:13 +0200 Subject: [PATCH] Cycles: oneAPI: avoid crashes from old drivers During recent testing, the oldest 101.4032 (windows) and <25812 (linux) drivers led to crashes during JIT compilation, so we bump the requirement to newer 101.4313 and 25812.14 drivers that do incorporate the required fixes. --- intern/cycles/blender/addon/properties.py | 4 ++-- intern/cycles/device/oneapi/device_impl.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index 442f06c10f1..830cc65e49b 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -1703,12 +1703,12 @@ class CyclesPreferences(bpy.types.AddonPreferences): elif device_type == 'ONEAPI': import sys if sys.platform.startswith("win"): - driver_version = "101.4032" + driver_version = "101.4314" col.label(text="Requires Intel GPU with Xe-HPG architecture", icon='BLANK1') col.label(text=iface_("and Windows driver version %s or newer") % driver_version, icon='BLANK1', translate=False) elif sys.platform.startswith("linux"): - driver_version = "1.3.24931" + driver_version = "1.3.25812" col.label(text="Requires Intel GPU with Xe-HPG architecture and", icon='BLANK1') col.label(text=iface_(" - intel-level-zero-gpu version %s or newer") % driver_version, icon='BLANK1', translate=False) diff --git a/intern/cycles/device/oneapi/device_impl.cpp b/intern/cycles/device/oneapi/device_impl.cpp index 2f04a522b7e..294497fe85b 100644 --- a/intern/cycles/device/oneapi/device_impl.cpp +++ b/intern/cycles/device/oneapi/device_impl.cpp @@ -758,10 +758,10 @@ bool OneapiDevice::enqueue_kernel(KernelContext *kernel_context, /* Compute-runtime (ie. NEO) version is what gets returned by sycl/L0 on Windows * since Windows driver 101.3268. */ -/* The same min compute-runtime version is currently required across Windows and Linux. - * For Windows driver 101.4032, compute-runtime version is 24931. */ -static const int lowest_supported_driver_version_win = 1014032; -static const int lowest_supported_driver_version_neo = 24931; +/* The same min compute-runtime version is currently used across Windows and Linux. + * For Windows driver 101.4314, compute-runtime version is 25977. */ +static const int lowest_supported_driver_version_win = 1014314; +static const int lowest_supported_driver_version_neo = 25812; int OneapiDevice::parse_driver_build_version(const sycl::device &device) { -- 2.30.2