* Synchronizes the given stream with this event. * The given stream will wait until the event recorded with \ref record(cudaStream_t) has completed. */
| 534 | * The given stream will wait until the event recorded with \ref record(cudaStream_t) has completed. |
| 535 | */ |
| 536 | void streamWait(cudaStream_t stream) const |
| 537 | { |
| 538 | CUMAT_SAFE_CALL(cudaStreamWaitEvent(stream, event_, 0)); |
| 539 | } |
| 540 | |
| 541 | /** |
| 542 | * Returns the elapsed time in milliseconds between the two recorded events. |