mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
- Introduce default Engine query - Improve Deferred Deleter usage - Remove Tag Allocation from Device Change-Id: Iaa88d8dc0166325acf9a157dcd2217ea408ee285 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
31 lines
679 B
C++
31 lines
679 B
C++
/*
|
|
* Copyright (C) 2017-2018 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>(gpgpuEngineInstances.size());
|
|
|
|
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
|