mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Change-Id: I5d6b58b5c185bf283ae529ebb21a4cbc8e9f198c Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
31 lines
706 B
C++
31 lines
706 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cinttypes>
|
|
#include <vector>
|
|
#include "engine_node.h"
|
|
namespace OCLRT {
|
|
|
|
constexpr uint32_t maxOsContextCount = (4u * static_cast<uint32_t>(EngineInstanceConstants::numGpgpuEngineInstances)) + 1;
|
|
|
|
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
|