Files
compute-runtime/runtime/memory_manager/residency.h
Mateusz Jablonski 7e3b6d2d90 Move definition of maxOsContextCount to engine_node.h
Change-Id: I1ed252e9bbf382b449c7751061f9df42ded8b797
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-04 15:34:05 +01:00

30 lines
583 B
C++

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