File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ struct ur_event_handle_t_ {
91
91
Queue->URFlags & UR_QUEUE_FLAG_PROFILING_ENABLE ||
92
92
Type == UR_COMMAND_TIMESTAMP_RECORDING_EXP;
93
93
if (RequiresTimings) {
94
- Queue->createProfilingStream ();
94
+ Queue->createHostSubmitTimeStream ();
95
95
}
96
96
native_type EvEnd = nullptr , EvQueued = nullptr , EvStart = nullptr ;
97
97
UR_CHECK_ERROR (cuEventCreate (
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ struct ur_queue_handle_t_ {
104
104
native_type get () { return getNextComputeStream (); };
105
105
ur_device_handle_t getDevice () const noexcept { return Device; };
106
106
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 () {
110
110
static std::once_flag HostSubmitTimeStreamFlag;
111
111
std::call_once (HostSubmitTimeStreamFlag, [&]() {
112
112
UR_CHECK_ERROR (cuStreamCreateWithPriority (&HostSubmitTimeStream,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ struct ur_event_handle_t_ {
84
84
Queue->URFlags & UR_QUEUE_FLAG_PROFILING_ENABLE ||
85
85
Type == UR_COMMAND_TIMESTAMP_RECORDING_EXP;
86
86
if (RequiresTimings) {
87
- Queue->createProfilingStream ();
87
+ Queue->createHostSubmitTimeStream ();
88
88
}
89
89
native_type EvEnd{nullptr }, EvQueued{nullptr }, EvStart{nullptr };
90
90
UR_CHECK_ERROR (hipEventCreateWithFlags (
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ struct ur_queue_handle_t_ {
101
101
native_type getNextTransferStream ();
102
102
native_type get () { return getNextComputeStream (); };
103
103
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 () {
107
107
static std::once_flag HostSubmitTimeStreamFlag;
108
108
std::call_once (HostSubmitTimeStreamFlag, [&]() {
109
109
UR_CHECK_ERROR (hipStreamCreateWithFlags (&HostSubmitTimeStream,
You can’t perform that action at this time.
0 commit comments