Skip to content

Commit 595f4ea

Browse files
committed
Changed name of createProfilingStream
1 parent 9d35b32 commit 595f4ea

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

source/adapters/cuda/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct ur_event_handle_t_ {
9191
Queue->URFlags & UR_QUEUE_FLAG_PROFILING_ENABLE ||
9292
Type == UR_COMMAND_TIMESTAMP_RECORDING_EXP;
9393
if (RequiresTimings) {
94-
Queue->createProfilingStream();
94+
Queue->createHostSubmitTimeStream();
9595
}
9696
native_type EvEnd = nullptr, EvQueued = nullptr, EvStart = nullptr;
9797
UR_CHECK_ERROR(cuEventCreate(

source/adapters/cuda/queue.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ struct ur_queue_handle_t_ {
104104
native_type get() { return getNextComputeStream(); };
105105
ur_device_handle_t getDevice() const noexcept { return Device; };
106106

107-
// Function which creates the profiling stream. Called only if profiling is
108-
// enabled.
109-
void createProfilingStream() {
107+
// Function which creates the profiling stream. Called only from makeNative
108+
// event when profiling is required.
109+
void createHostSubmitTimeStream() {
110110
static std::once_flag HostSubmitTimeStreamFlag;
111111
std::call_once(HostSubmitTimeStreamFlag, [&]() {
112112
UR_CHECK_ERROR(cuStreamCreateWithPriority(&HostSubmitTimeStream,

source/adapters/hip/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ur_event_handle_t_ {
8484
Queue->URFlags & UR_QUEUE_FLAG_PROFILING_ENABLE ||
8585
Type == UR_COMMAND_TIMESTAMP_RECORDING_EXP;
8686
if (RequiresTimings) {
87-
Queue->createProfilingStream();
87+
Queue->createHostSubmitTimeStream();
8888
}
8989
native_type EvEnd{nullptr}, EvQueued{nullptr}, EvStart{nullptr};
9090
UR_CHECK_ERROR(hipEventCreateWithFlags(

source/adapters/hip/queue.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ struct ur_queue_handle_t_ {
101101
native_type getNextTransferStream();
102102
native_type get() { return getNextComputeStream(); };
103103

104-
// Function which creates the profiling stream. Called only if profiling is
105-
// enabled.
106-
void createProfilingStream() {
104+
// Function which creates the profiling stream. Called only from makeNative
105+
// event when profiling is required.
106+
void createHostSubmitTimeStream() {
107107
static std::once_flag HostSubmitTimeStreamFlag;
108108
std::call_once(HostSubmitTimeStreamFlag, [&]() {
109109
UR_CHECK_ERROR(hipStreamCreateWithFlags(&HostSubmitTimeStream,

0 commit comments

Comments
 (0)