mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Handle TimestampPackets for non-kernel enqueues
Change-Id: I52ec4f43b10bf6e2a10b2455d32a90a606645d29 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8ceba24296
commit
66427f60c6
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "runtime/event/async_events_handler.h"
|
||||
#include "runtime/event/event.h"
|
||||
#include "runtime/helpers/timestamp_packet.h"
|
||||
#include "runtime/os_interface/os_thread.h"
|
||||
#include <iterator>
|
||||
|
||||
|
||||
@@ -713,7 +713,7 @@ void Event::copyPerfCounters(InstrPmRegsCfg *config) {
|
||||
memcpy_s(perfConfigurationData, sizeof(InstrPmRegsCfg), config, sizeof(InstrPmRegsCfg));
|
||||
}
|
||||
|
||||
void Event::setTimestampPacketNodes(TimestampPacketContainer &inputTimestampPacketContainer) {
|
||||
void Event::addTimestampPacketNodes(TimestampPacketContainer &inputTimestampPacketContainer) {
|
||||
timestampPacketContainer->assignAndIncrementNodesRefCounts(inputTimestampPacketContainer);
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ class Event : public BaseObject<_cl_event>, public IDNode<Event> {
|
||||
HwTimeStamps *getHwTimeStamp();
|
||||
GraphicsAllocation *getHwTimeStampAllocation();
|
||||
|
||||
void setTimestampPacketNodes(TimestampPacketContainer &inputTimestampPacketContainer);
|
||||
void addTimestampPacketNodes(TimestampPacketContainer &inputTimestampPacketContainer);
|
||||
TimestampPacketContainer *getTimestampPacketNodes() const;
|
||||
|
||||
bool isPerfCountersEnabled() {
|
||||
|
||||
@@ -1,23 +1,8 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (C) 2017-2018 Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "runtime/api/cl_types.h"
|
||||
@@ -25,6 +10,7 @@
|
||||
#include "runtime/event/event_builder.h"
|
||||
#include "runtime/event/user_event.h"
|
||||
#include "runtime/helpers/debug_helpers.h"
|
||||
#include "runtime/helpers/timestamp_packet.h"
|
||||
|
||||
namespace OCLRT {
|
||||
EventBuilder::~EventBuilder() {
|
||||
|
||||
Reference in New Issue
Block a user