Files
compute-runtime/runtime/os_interface/os_interface.h
Maciej Plewka 7a5bc461eb Add residency handler for TBX
Change-Id: I6c01d065ff3372fe7583ed50ed51595ebeb53e54
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-08-27 07:59:47 +02:00

33 lines
645 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
namespace NEO {
class OSInterface {
public:
class OSInterfaceImpl;
OSInterface();
virtual ~OSInterface();
OSInterface(const OSInterface &) = delete;
OSInterface &operator=(const OSInterface &) = delete;
OSInterfaceImpl *get() const {
return osInterfaceImpl;
};
static bool osEnabled64kbPages;
static bool osEnableLocalMemory;
static bool are64kbPagesEnabled();
unsigned int getDeviceHandle() const;
protected:
OSInterfaceImpl *osInterfaceImpl = nullptr;
};
} // namespace NEO