Commit: e571c565d124b103ea6aff0d9941a6d2fcef2871
Author: Xavier Hallade
Date:   Tue May 31 15:32:11 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBe571c565d124b103ea6aff0d9941a6d2fcef2871

Cycles: filter out oneAPI host device in incompatible builds

===================================================================

M       intern/cycles/kernel/device/oneapi/kernel.cpp

===================================================================

diff --git a/intern/cycles/kernel/device/oneapi/kernel.cpp 
b/intern/cycles/kernel/device/oneapi/kernel.cpp
index cb85bc458cb..4d3abe1255a 100644
--- a/intern/cycles/kernel/device/oneapi/kernel.cpp
+++ b/intern/cycles/kernel/device/oneapi/kernel.cpp
@@ -741,7 +741,10 @@ static std::vector<sycl::device> oneapi_available_devices()
 
     for (const sycl::device &device : oneapi_devices) {
       if (allow_all_devices) {
-        available_devices.push_back(device);
+        // still filter out host device if build doesn't support it.
+        if (allow_host || !device.is_host()) {
+          available_devices.push_back(device);
+        }
       }
       else {
         bool filter_out = false;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to