class to create a CUDA event with unique ownership More...
#include <taskflow/cuda/cuda_stream.hpp>
Public Types | |
| using | base_type = std::unique_ptr<std::remove_pointer_t<cudaEvent_t>, Deleter> |
| base type for the underlying unique pointer | |
Public Member Functions | |
| template<typename... ArgsT> | |
| cudaEventBase (ArgsT &&... args) | |
constructs a cudaEvent object by passing the given arguments to the event creator | |
| cudaEventBase (cudaEventBase &&)=default | |
constructs a cudaEvent from the given rhs using move semantics | |
| cudaEventBase & | operator= (cudaEventBase &&)=default |
assign the rhs to *this using move semantics | |
class to create a CUDA event with unique ownership
| Creator | functor to create the stream (used in constructor) |
| Deleter | functor to delete the stream (used in destructor) |
The cudaEventBase class encapsulates a cudaEvent_t using std::unique_ptr, ensuring that CUDA events are properly created and destroyed with a unique ownership.
| using tf::cudaEventBase< Creator, Deleter >::base_type = std::unique_ptr<std::remove_pointer_t<cudaEvent_t>, Deleter> |
base type for the underlying unique pointer
This alias provides a shorthand for the underlying std::unique_ptr type that manages CUDA event resources with an associated deleter.
|
inlineexplicit |