Files
compute-runtime/opencl/source/event/perf_counter.h
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00

32 lines
842 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; }
// 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