[Bf-blender-cvs] [602cca671e6] master: Cycles: Include reason the oneAPI library could not be loaded
Sergey Sharybin
noreply at git.blender.org
Tue Sep 13 10:56:15 CEST 2022
Commit: 602cca671e6905bd9942513d0c99cf7f03cce5ee
Author: Sergey Sharybin
Date: Tue Sep 13 10:52:18 2022 +0200
Branches: master
https://developer.blender.org/rB602cca671e6905bd9942513d0c99cf7f03cce5ee
Cycles: Include reason the oneAPI library could not be loaded
Additionally, just stick to a pure error stating. Such messages
are aimed for developers and it is rather implied that oneAPI
rendering will be disabled.
===================================================================
M intern/cycles/device/oneapi/device.cpp
===================================================================
diff --git a/intern/cycles/device/oneapi/device.cpp b/intern/cycles/device/oneapi/device.cpp
index 8056c204188..f0d90fb504f 100644
--- a/intern/cycles/device/oneapi/device.cpp
+++ b/intern/cycles/device/oneapi/device.cpp
@@ -49,8 +49,7 @@ bool device_oneapi_init()
/* This shouldn't happen, but it still makes sense to have a branch for this. */
if (lib_handle == NULL) {
- LOG(ERROR) << "oneAPI kernel shared library cannot be loaded for some reason. This should not "
- "happen, however, it occurs hence oneAPI rendering will be disabled";
+ LOG(ERROR) << "oneAPI kernel shared library cannot be loaded: " << dlerror();
return false;
}
More information about the Bf-blender-cvs
mailing list