Files
compute-runtime/shared/source/os_interface/linux/os_library_linux.h
Spruit, Neil R 7a3095c273 Report failure given Compiler Library Load failed for L0
- Return ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE given the Compiler
  cannot be loaded.
- Print dlopen and LoadLibrary error strings given Debug Print Messages
  are enabled.

Related-To: LOCI-1313

Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2021-04-01 23:01:38 +02:00

29 lines
546 B
C++

/*
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_library.h"
namespace NEO {
namespace Linux {
void adjustLibraryFlags(int &dlopenFlag);
class OsLibrary : public NEO::OsLibrary {
private:
void *handle;
public:
OsLibrary(const std::string &name, std::string *errorValue);
~OsLibrary() override;
bool isLoaded() override;
void *getProcAddress(const std::string &procName) override;
};
} // namespace Linux
} // namespace NEO