@@ -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)(
163161typedef 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