mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Change-Id: I323ca856d3c901bdc4d5961cdefa42685b53d4d9 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
36 lines
723 B
C++
36 lines
723 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace NEO {
|
|
|
|
class ResidencyHandler;
|
|
|
|
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;
|
|
ResidencyHandler *getResidencyInterface() const;
|
|
|
|
protected:
|
|
OSInterfaceImpl *osInterfaceImpl = nullptr;
|
|
};
|
|
} // namespace NEO
|