Files
compute-runtime/runtime/memory_manager/residency.h
Piotr Fusik cc13045ddd Move definitions out of engine_node.h.
Change-Id: I18692a444663c11103f8991415b38000c633f24a
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-25 13:22:55 +01:00

26 lines
494 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "engine_limits.h"
#include <array>
#include <cstdint>
namespace OCLRT {
struct ResidencyData {
bool resident[maxOsContextCount] = {};
void updateCompletionData(uint64_t newFenceValue, uint32_t contextId);
uint64_t getFenceValueForContextId(uint32_t contextId);
protected:
std::array<uint64_t, maxOsContextCount> lastFenceValues = {};
};
} // namespace OCLRT