@@ -166,32 +166,28 @@ void gpu_destroy_event(const SP_Device* device, SP_Event event) {
166
166
167
167
// Requests the current status of the event from the underlying platform.
168
168
SE_EventStatus gpu_get_event_status (const SP_Device* device, SP_Event event) {
169
- if (IsMultipleStreamEnabled ()) {
170
- ITEX_GPUEvent event_handle = static_cast <SP_Event_st*>(event)->event_handle ;
171
- auto event_status =
172
- event_handle.get_info <sycl::info::event::command_execution_status>();
173
- switch (event_status) {
174
- case sycl::info::event_command_status::submitted:
175
- case sycl::info::event_command_status::running:
176
- return SE_EVENT_PENDING;
177
- case sycl::info::event_command_status::complete:
178
- return SE_EVENT_COMPLETE;
179
- default :
180
- return SE_EVENT_UNKNOWN;
181
- }
169
+ ITEX_GPUEvent event_handle = static_cast <SP_Event_st*>(event)->event_handle ;
170
+ auto event_status =
171
+ event_handle.get_info <sycl::info::event::command_execution_status>();
172
+ switch (event_status) {
173
+ case sycl::info::event_command_status::submitted:
174
+ case sycl::info::event_command_status::running:
175
+ return SE_EVENT_PENDING;
176
+ case sycl::info::event_command_status::complete:
177
+ return SE_EVENT_COMPLETE;
178
+ default :
179
+ return SE_EVENT_UNKNOWN;
182
180
}
183
181
return SE_EVENT_COMPLETE;
184
182
}
185
183
186
184
// Inserts the specified event at the end of the specified stream.
187
185
void gpu_record_event (const SP_Device* device, SP_Stream stream, SP_Event event,
188
186
TF_Status* status) {
189
- if (IsMultipleStreamEnabled ()) {
190
- ITEX_GPUStream* stream_handle =
191
- static_cast <SP_Stream_st*>(stream)->stream_handle ;
192
- ITEX_GPUEvent recorded_event = stream_handle->ext_oneapi_submit_barrier ();
193
- event->event_handle = recorded_event;
194
- }
187
+ ITEX_GPUStream* stream_handle =
188
+ static_cast <SP_Stream_st*>(stream)->stream_handle ;
189
+ ITEX_GPUEvent recorded_event = stream_handle->ext_oneapi_submit_barrier ();
190
+ event->event_handle = recorded_event;
195
191
}
196
192
197
193
// Wait for the specified event at the end of the specified stream.
0 commit comments