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.
This commit is contained in:
Sergey Sharybin 2022-09-13 10:52:18 +02:00
parent cca416cfe6
commit 602cca671e

View File

@ -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;
}