Files
compute-runtime/opencl/source/event/perf_counter.h
Bartosz Dunajski 6818e55594 Improve TimestampPacket dependencies handling
Change-Id: Ib38f9db8e7398759c3031af5709ccdfd6a421002
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-04-23 15:18:40 +02:00

34 lines
910 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_manager/graphics_allocation.h"
#include "opencl/source/event/hw_timestamps.h"
namespace NEO {
struct HwPerfCounter {
void initialize() {
report[0] = 0;
}
static GraphicsAllocation::AllocationType getAllocationType() {
return GraphicsAllocation::AllocationType::PROFILING_TAG_BUFFER;
}
bool isCompleted() const { return true; }
uint32_t getImplicitGpuDependenciesCount() const { return 0; }
// Gpu report size is not known during compile time.
// Such information will be provided by metrics library dll.
// Bellow variable will be allocated dynamically based on information
// from metrics library. Take look at CommandStreamReceiver::getEventPerfCountAllocator.
uint8_t report[1] = {};
};
} // namespace NEO