mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
fix: running Blender with SYSMAN enabled on Linux
Related-To: NEO-11618 Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5adfaa0380
commit
8527779778
@@ -43,6 +43,8 @@ OsLibrary::OsLibrary(const std::string &name, std::string *errorValue) {
|
||||
auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;
|
||||
/* Background: https://github.com/intel/compute-runtime/issues/122 */
|
||||
#endif
|
||||
dlopenFlag = OsLibrary::loadFlagsOverwrite ? *OsLibrary::loadFlagsOverwrite : dlopenFlag;
|
||||
OsLibrary::loadFlagsOverwrite = nullptr;
|
||||
adjustLibraryFlags(dlopenFlag);
|
||||
this->handle = SysCalls::dlopen(name.c_str(), dlopenFlag);
|
||||
if (!this->handle && (errorValue != nullptr)) {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
namespace NEO {
|
||||
|
||||
const int *OsLibrary::loadFlagsOverwrite = nullptr;
|
||||
|
||||
decltype(&OsLibrary::load) OsLibrary::loadFunc = OsLibrary::load;
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -31,6 +31,8 @@ class OsLibrary {
|
||||
public:
|
||||
virtual ~OsLibrary() = default;
|
||||
|
||||
static const int *loadFlagsOverwrite;
|
||||
|
||||
static decltype(&OsLibrary::load) loadFunc;
|
||||
static OsLibrary *loadAndCaptureError(const std::string &name, std::string *errorValue);
|
||||
static const std::string createFullSystemPath(const std::string &name);
|
||||
|
||||
Reference in New Issue
Block a user