compute-runtime/shared/source/os_interface/linux/os_library_linux.h

33 lines
637 B
C++

/*
* Copyright (C) 2019-2025 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 OsLibraryCreateProperties &properties);
~OsLibrary() override;
bool isLoaded() override;
void *getProcAddress(const std::string &procName) override;
std::string getFullPath() override;
};
bool isLibraryLoaded(const std::string &libraryName);
} // namespace Linux
} // namespace NEO