Skip to content

Commit 159f29b

Browse files
committed
Revert "opal/accelerator: add destroy_stream API"
This reverts commit 24892cf.
1 parent a915a31 commit 159f29b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

opal/mca/accelerator/accelerator.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ typedef int (*opal_accelerator_base_module_check_addr_fn_t)(
150150

151151
/**
152152
* Creates a stream for asynchonous operations. This function will allocate
153-
* memory for the object.
154-
* To release the memory and associated resources,
155-
* call opal_accelerator_base_module_create_stream_fn_t
153+
* memory for the object. To release the memory, call OBJ_RELEASE(*stream);
156154
*
157155
* @param[IN] dev_id Associated device for the stream or
158156
* MCA_ACCELERATOR_NO_DEVICE_ID
@@ -163,18 +161,6 @@ typedef int (*opal_accelerator_base_module_check_addr_fn_t)(
163161
typedef int (*opal_accelerator_base_module_create_stream_fn_t)(
164162
int dev_id, opal_accelerator_stream_t **stream);
165163

166-
/**
167-
* Destroys a stream and release the object memory.
168-
* This function should return immediately, but resources associated with
169-
* the stream may be released later.
170-
*
171-
* @param[IN] stream Stream to destroy
172-
*
173-
* @return OPAL_SUCCESS or error status on failure
174-
*/
175-
typedef int (*opal_accelerator_base_module_destroy_stream_fn_t)(
176-
opal_accelerator_stream_t *stream);
177-
178164
/**
179165
* Creates an event. An event is a synchronization marker that can be
180166
* appended to a stream to monitor device progress or synchronize the
@@ -416,7 +402,6 @@ typedef struct {
416402
opal_accelerator_base_module_check_addr_fn_t check_addr;
417403

418404
opal_accelerator_base_module_create_stream_fn_t create_stream;
419-
opal_accelerator_base_module_destroy_stream_fn_t destroy_stream;
420405
opal_accelerator_base_module_create_event_fn_t create_event;
421406
opal_accelerator_base_module_record_event_fn_t record_event;
422407
opal_accelerator_base_module_query_event_fn_t query_event;

0 commit comments

Comments
 (0)