@@ -150,9 +150,7 @@ typedef int (*opal_accelerator_base_module_check_addr_fn_t)(
150
150
151
151
/**
152
152
* 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);
156
154
*
157
155
* @param[IN] dev_id Associated device for the stream or
158
156
* MCA_ACCELERATOR_NO_DEVICE_ID
@@ -163,18 +161,6 @@ typedef int (*opal_accelerator_base_module_check_addr_fn_t)(
163
161
typedef int (* opal_accelerator_base_module_create_stream_fn_t )(
164
162
int dev_id , opal_accelerator_stream_t * * stream );
165
163
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
-
178
164
/**
179
165
* Creates an event. An event is a synchronization marker that can be
180
166
* appended to a stream to monitor device progress or synchronize the
@@ -416,7 +402,6 @@ typedef struct {
416
402
opal_accelerator_base_module_check_addr_fn_t check_addr ;
417
403
418
404
opal_accelerator_base_module_create_stream_fn_t create_stream ;
419
- opal_accelerator_base_module_destroy_stream_fn_t destroy_stream ;
420
405
opal_accelerator_base_module_create_event_fn_t create_event ;
421
406
opal_accelerator_base_module_record_event_fn_t record_event ;
422
407
opal_accelerator_base_module_query_event_fn_t query_event ;
0 commit comments