Taskflow  3.2.0-Master-Branch
Loading...
Searching...
No Matches
tf::cudaEvent Class Reference

‍** 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
 
cudaEventoperator= (const cudaEvent &)=delete
 disabled copy assignment
 
cudaEventoperator= (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
 

Detailed Description

‍**

‍** ‍**

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.

Member Function Documentation

◆ operator cudaEvent_t()

tf::cudaEvent::operator cudaEvent_t ( ) const
inline

implicit conversion to the native CUDA event (cudaEvent_t)

Returns the underlying event of type cudaEvent_t.

◆ reset()

void tf::cudaEvent::reset ( cudaEvent_t  event = nullptr)
inline

replaces the managed event

Destructs the managed event and resets it to the given event.


The documentation for this class was generated from the following file: