Skip to content

Commit 44aef87

Browse files
fabiomestrekbenzie
authored andcommitted
[OPENCL] Remove EVENT_STATUS_QUEUED workaround
1 parent 6e76c98 commit 44aef87

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

source/adapters/opencl/event.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(ur_event_handle_t hEvent,
170170
*reinterpret_cast<ur_command_t *>(pPropValue) = convertCLCommandTypeToUR(
171171
*reinterpret_cast<cl_command_type *>(pPropValue));
172172
} else if (propName == UR_EVENT_INFO_COMMAND_EXECUTION_STATUS) {
173-
/* If the CL_EVENT_COMMAND_EXECUTION_STATUS info value is CL_QUEUED,
174-
* change it to CL_SUBMITTED. sycl::info::event::event_command_status has
175-
* no equivalent to CL_QUEUED.
176-
*
177-
* FIXME UR Port: This should not be part of the UR adapter. Since
178-
* PI_QUEUED exists, SYCL RT should be changed to handle this situation.
179-
* In addition, SYCL RT is relying on PI_QUEUED status to make sure that
180-
* the queues are flushed. */
181173
const auto param_value_int = static_cast<ur_event_status_t *>(pPropValue);
182-
if (*param_value_int == UR_EVENT_STATUS_QUEUED) {
183-
*param_value_int = UR_EVENT_STATUS_SUBMITTED;
184-
} else if (*param_value_int < 0) {
174+
if (*param_value_int < 0) {
185175
// This can contain a negative return code to signify that the command
186176
// terminated in an unexpected way.
187177
*param_value_int = UR_EVENT_STATUS_ERROR;

0 commit comments

Comments
 (0)