mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
on Windows use getModuleHandleA with proper module name don't load ze_loader.dll from file system Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
30 lines
581 B
C++
30 lines
581 B
C++
/*
|
|
* Copyright (C) 2019-2024 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;
|
|
};
|
|
} // namespace Linux
|
|
} // namespace NEO
|