mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
feature: get command list information for in order noop data
Related-To: NEO-15376 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c2d64cae6a
commit
092f2bb333
@@ -165,4 +165,18 @@ void InOrderExecInfo::releaseNotUsedTempTimestampNodes(bool forceReturn) {
|
||||
tempTimestampNodes.swap(tempVector);
|
||||
}
|
||||
|
||||
uint64_t InOrderExecInfo::getHostNodeGpuAddress() const {
|
||||
if (hostCounterNode) {
|
||||
return hostCounterNode->getGpuAddress() + allocationOffset;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t InOrderExecInfo::getDeviceNodeGpuAddress() const {
|
||||
if (deviceCounterNode) {
|
||||
return deviceCounterNode->getGpuAddress() + allocationOffset;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -63,6 +63,23 @@ class InOrderExecInfo : public NEO::NonCopyableClass {
|
||||
uint64_t getBaseDeviceAddress() const { return deviceAddress; }
|
||||
uint64_t getBaseHostGpuAddress() const;
|
||||
|
||||
uint64_t getDeviceNodeGpuAddress() const;
|
||||
uint64_t getHostNodeGpuAddress() const;
|
||||
size_t getDeviceNodeWriteSize() const {
|
||||
if (deviceCounterNode) {
|
||||
const size_t deviceAllocationWriteSize = sizeof(uint64_t) * numDevicePartitionsToWait;
|
||||
return deviceAllocationWriteSize;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
size_t getHostNodeWriteSize() const {
|
||||
if (hostCounterNode) {
|
||||
const size_t hostAllocationWriteSize = sizeof(uint64_t) * numHostPartitionsToWait;
|
||||
return hostAllocationWriteSize;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t getCounterValue() const { return counterValue; }
|
||||
void addCounterValue(uint64_t addValue) { counterValue += addValue; }
|
||||
void resetCounterValue() { counterValue = 0; }
|
||||
|
||||
Reference in New Issue
Block a user