2018-09-05 15:17:52 +02:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-09-05 15:17:52 +02:00
|
|
|
|
|
|
|
|
#include "runtime/memory_manager/residency.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2018-09-05 15:17:52 +02:00
|
|
|
#include "runtime/os_interface/os_context.h"
|
|
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
|
|
2018-10-22 16:43:20 +02:00
|
|
|
void ResidencyData::updateCompletionData(uint64_t newFenceValue, uint32_t contextId) {
|
|
|
|
|
lastFenceValues[contextId] = newFenceValue;
|
2018-09-07 07:18:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint64_t ResidencyData::getFenceValueForContextId(uint32_t contextId) {
|
2018-10-22 16:43:20 +02:00
|
|
|
return lastFenceValues[contextId];
|
2018-09-05 15:17:52 +02:00
|
|
|
}
|