![]() |
Taskflow
3.2.0-Master-Branch
|
** More...
#include <cuda_stream.hpp>
Public Member Functions | |
cudaEvent (cudaEvent_t event) | |
constructs an RAII-styled object from the given CUDA event | |
cudaEvent () | |
constructs an RAII-styled object for a new CUDA event | |
cudaEvent (const cudaEvent &)=delete | |
disabled copy constructor | |
cudaEvent (cudaEvent &&rhs) | |
move constructor | |
~cudaEvent () | |
destructs the CUDA event | |
cudaEvent & | operator= (const cudaEvent &)=delete |
disabled copy assignment | |
cudaEvent & | operator= (cudaEvent &&rhs) |
move assignment | |
operator cudaEvent_t () const | |
implicit conversion to the native CUDA event (cudaEvent_t) | |
void | reset (cudaEvent_t event=nullptr) |
replaces the managed event | |
**
** **
class to create a CUDA event in an RAII-styled wrapper
A cudaEvent object is an RAII-styled wrapper over a native CUDA stream (cudaEvent_t
). A cudaEvent object is move-only.
|
inline |
implicit conversion to the native CUDA event (cudaEvent_t)
Returns the underlying event of type cudaEvent_t
.
|
inline |
replaces the managed event
Destructs the managed event and resets it to the given event.