compute-runtime/runtime/os_interface/linux/os_library.h

27 lines
478 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/os_interface/os_library.h"
namespace OCLRT {
namespace Linux {
class OsLibrary : public OCLRT::OsLibrary {
private:
void *handle;
public:
OsLibrary(const std::string &name);
~OsLibrary() override;
bool isLoaded() override;
void *getProcAddress(const std::string &procName) override;
};
} // namespace Linux
} // namespace OCLRT