Skip to content

Commit b52cbc8

Browse files
committed
Revert "opal/accelerator: add destroy_event API"
This reverts commit 32333ab.
1 parent 267dd48 commit b52cbc8

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

opal/mca/accelerator/accelerator.h

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ typedef int (*opal_accelerator_base_module_stream_wait_event_fn_t)(
200200
* Creates an event. An event is a synchronization marker that can be
201201
* appended to a stream to monitor device progress or synchronize the
202202
* corresponding stream. This function will allocate memory for the object.
203-
* To release the object memory and associated resources
204-
* call opal_accelerator_base_module_destroy_event_fn_t
203+
* To release the memory, call OBJ_RELEASE(*event);
205204
*
206205
* @param[IN] dev_id Associated device for the event or
207206
* MCA_ACCELERATOR_NO_DEVICE_ID
@@ -212,18 +211,6 @@ typedef int (*opal_accelerator_base_module_stream_wait_event_fn_t)(
212211
typedef int (*opal_accelerator_base_module_create_event_fn_t)(
213212
int dev_id, opal_accelerator_event_t **event);
214213

215-
/**
216-
* Destroys an event and release the object memory.
217-
* This function should return immediately, but the event may complete
218-
* and associated resources are released later.
219-
*
220-
* @param[IN] event Event to destroy
221-
*
222-
* @return OPAL_SUCCESS or error status on failure.
223-
*/
224-
typedef int (*opal_accelerator_base_module_destroy_event_fn_t)(
225-
opal_accelerator_event_t *event);
226-
227214
/**
228215
* Records an event on a stream. An event recorded on the stream is
229216
* a synchronization marker that can be used to monitor the device's
@@ -454,7 +441,6 @@ typedef struct {
454441
opal_accelerator_base_module_synchronize_stream_fn_t synchronize_stream;
455442
opal_accelerator_base_module_stream_wait_event_fn_t stream_wait_event;
456443
opal_accelerator_base_module_create_event_fn_t create_event;
457-
opal_accelerator_base_module_destroy_event_fn_t destroy_event;
458444
opal_accelerator_base_module_record_event_fn_t record_event;
459445
opal_accelerator_base_module_query_event_fn_t query_event;
460446

0 commit comments

Comments
 (0)