mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <iterator>
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
AsyncEventsHandler::AsyncEventsHandler() {
|
||||
allowAsyncProcess = false;
|
||||
registerList.reserve(64);
|
||||
@@ -115,4 +115,4 @@ void AsyncEventsHandler::releaseEvents() {
|
||||
list.clear();
|
||||
UNRECOVERABLE_IF(!registerList.empty()) // transferred before release
|
||||
}
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
class Event;
|
||||
class Thread;
|
||||
|
||||
@@ -38,4 +38,4 @@ class AsyncEventsHandler {
|
||||
std::condition_variable asyncCond;
|
||||
std::atomic<bool> allowAsyncProcess;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "runtime/utilities/stackvec.h"
|
||||
#include "runtime/utilities/tag_allocator.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
const cl_uint Event::eventNotReady = 0xFFFFFFF0;
|
||||
|
||||
@@ -45,7 +45,7 @@ Event::Event(
|
||||
cmdType(cmdType),
|
||||
dataCalculated(false),
|
||||
taskCount(taskCount) {
|
||||
if (OCLRT::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
if (NEO::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
EventsTracker::getEventsTracker().notifyCreation(this);
|
||||
}
|
||||
parentCount = 0;
|
||||
@@ -95,7 +95,7 @@ Event::Event(
|
||||
}
|
||||
|
||||
Event::~Event() {
|
||||
if (OCLRT::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
if (NEO::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
EventsTracker::getEventsTracker().notifyDestruction(this);
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ cl_int Event::getEventProfilingInfo(cl_profiling_info paramName,
|
||||
}
|
||||
|
||||
return retVal;
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
uint32_t Event::getCompletionStamp() const {
|
||||
return this->taskCount;
|
||||
@@ -463,7 +463,7 @@ void Event::transitionExecutionStatus(int32_t newExecutionStatus) const {
|
||||
while (prevStatus > newExecutionStatus) {
|
||||
executionStatus.compare_exchange_weak(prevStatus, newExecutionStatus);
|
||||
}
|
||||
if (OCLRT::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
if (NEO::DebugManager.flags.EventsTrackerEnable.get()) {
|
||||
EventsTracker::getEventsTracker().notifyTransitionedExecutionStatus();
|
||||
}
|
||||
}
|
||||
@@ -730,4 +730,4 @@ bool Event::checkUserEventDependencies(cl_uint numEventsInWaitList, const cl_eve
|
||||
return userEventsDependencies;
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#define OCLRT_NUM_TIMESTAMP_BITS (32)
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
template <typename TagType>
|
||||
struct TagNode;
|
||||
class CommandQueue;
|
||||
@@ -385,4 +385,4 @@ class Event : public BaseObject<_cl_event>, public IDNode<Event> {
|
||||
// can be accessed only with updateTaskCount
|
||||
std::atomic<uint32_t> taskCount;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "runtime/helpers/debug_helpers.h"
|
||||
#include "runtime/helpers/timestamp_packet.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
EventBuilder::~EventBuilder() {
|
||||
UNRECOVERABLE_IF((this->event == nullptr) && ((parentEvents.size() != 0U)));
|
||||
finalize();
|
||||
@@ -74,4 +74,4 @@ void EventBuilder::clear() {
|
||||
|
||||
parentEvents.clear();
|
||||
}
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
class Event;
|
||||
|
||||
@@ -63,4 +63,4 @@ class EventBuilder {
|
||||
StackVec<Event *, 16> parentEvents;
|
||||
bool doNotRegister = false;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "runtime/command_queue/command_queue.h"
|
||||
#include "runtime/helpers/cl_helper.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
std::unique_ptr<EventsTracker> EventsTracker::globalEvTracker = nullptr;
|
||||
|
||||
@@ -79,7 +79,7 @@ void EventsTracker::dumpNode(Event *node, std::ostream &out, const EventIdMap &e
|
||||
std::string eventType = isUserEvent ? "USER_EVENT" : (node->isCurrentCmdQVirtualEvent() ? "---V_EVENT " : "-----EVENT ");
|
||||
std::string commandType = "";
|
||||
if (isUserEvent == false) {
|
||||
commandType = OCLRT::cmdTypetoString(node->getCommandType());
|
||||
commandType = NEO::cmdTypetoString(node->getCommandType());
|
||||
}
|
||||
|
||||
static const char *status[] = {
|
||||
@@ -246,4 +246,4 @@ std::unique_ptr<std::ostream> EventsTracker::createDumpStream(const std::string
|
||||
return std::make_unique<std::fstream>(filename, std::ios::binary | std::ios::out);
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
class CommandQueue;
|
||||
|
||||
@@ -55,4 +55,4 @@ class EventsTracker {
|
||||
const EventIdMap &eventsIdMapping);
|
||||
};
|
||||
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
struct HwTimeStamps {
|
||||
void initialize() {
|
||||
@@ -32,4 +32,4 @@ struct HwTimeStamps {
|
||||
uint64_t GlobalCompleteTS;
|
||||
uint64_t ContextCompleteTS;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "instrumentation.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
struct HwPerfCounter {
|
||||
void initialize() {
|
||||
@@ -26,4 +26,4 @@ struct HwPerfCounter {
|
||||
HwPerfCounters HWPerfCounters;
|
||||
HwTimeStamps HWTimeStamp;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "runtime/context/context.h"
|
||||
#include "runtime/device/device.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
UserEvent::UserEvent(Context *ctx)
|
||||
: Event(ctx, nullptr, CL_COMMAND_USER, eventNotReady, eventNotReady) {
|
||||
@@ -81,4 +81,4 @@ bool VirtualEvent::setStatus(cl_int status) {
|
||||
}
|
||||
return Event::setStatus(status);
|
||||
}
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2018 Intel Corporation
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,7 +8,7 @@
|
||||
#pragma once
|
||||
#include "event.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
class CommandQueue;
|
||||
class Context;
|
||||
|
||||
@@ -41,4 +41,4 @@ class VirtualEvent : public Event {
|
||||
|
||||
uint32_t getTaskLevel() override;
|
||||
};
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user