Holds an auxiliary mshadow gpu stream that can be synced with a primary stream.
More...
#include <base.h>
|
| static void | StreamSync (mshadow::Stream< gpu > *s1, mshadow::Stream< gpu > *s2, cudaEvent_t event) |
| | Make future work enqueued to s2 wait on completion of current work enqueued to s1. More...
|
| |
Holds an auxiliary mshadow gpu stream that can be synced with a primary stream.
| mxnet::GPUAuxStream::GPUAuxStream |
( |
mshadow::Stream< gpu > * |
primary_stream | ) |
|
|
inlineexplicit |
constructor.
- Parameters
-
| primary_stream | gpu stream that is synced with the created auxiliary stream. |
| mxnet::GPUAuxStream::~GPUAuxStream |
( |
| ) |
|
|
inline |
| mshadow::Stream<gpu>* mxnet::GPUAuxStream::GetStream |
( |
| ) |
|
|
inline |
Getter for created auxiliary stream.
| void mxnet::GPUAuxStream::PostAuxStreamUseSync |
( |
| ) |
|
|
inline |
Makes future primary stream work wait on the completion of existing aux stream work.
| void mxnet::GPUAuxStream::PreAuxStreamUseSync |
( |
| ) |
|
|
inline |
Makes future aux stream work wait on the completion of existing primary stream work.
| static void mxnet::GPUAuxStream::StreamSync |
( |
mshadow::Stream< gpu > * |
s1, |
|
|
mshadow::Stream< gpu > * |
s2, |
|
|
cudaEvent_t |
event |
|
) |
| |
|
inlinestatic |
Make future work enqueued to s2 wait on completion of current work enqueued to s1.
- Parameters
-
| s1 | stream with work that must be completed before future s2 work can begin. |
| s2 | stream whose future work is made to wait on the completion of existing s1 work. |
| event | used to pass s1 state to s2. |
The documentation for this class was generated from the following file: