mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move residency to the core dir
Related-To: NEO-3677 Change-Id: Ib4aaa7dcfc46d9bb515c4881ddb6adb974990ca9 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
523d2af942
commit
fab659f4a9
@ -40,8 +40,6 @@ set(RUNTIME_SRCS_MEMORY_MANAGER
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/page_table.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/page_table.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/physical_address_allocator.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/residency.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/residency.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/residency_container.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/surface.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/unified_memory_manager.cpp
|
||||
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "runtime/memory_manager/residency.h"
|
||||
#include "core/memory_manager/residency.h"
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstdlib>
|
||||
|
@ -1,18 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/memory_manager/residency.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
void ResidencyData::updateCompletionData(uint64_t newFenceValue, uint32_t contextId) {
|
||||
lastFenceValues[contextId] = newFenceValue;
|
||||
}
|
||||
|
||||
uint64_t ResidencyData::getFenceValueForContextId(uint32_t contextId) {
|
||||
return lastFenceValues[contextId];
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "engine_limits.h"
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
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 NEO
|
Reference in New Issue
Block a user