3MUDA_INLINE Event::Event(Flags<Bit> flag)
5 checkCudaErrors(cudaEventCreateWithFlags(&m_handle,
static_cast<unsigned int>(flag)));
8MUDA_INLINE
auto Event::query() const -> QueryResult
10 auto res = cudaEventQuery(m_handle);
11 if(res != cudaSuccess && res != cudaErrorNotReady)
16MUDA_INLINE
float muda::Event::elapsed_time(cudaEvent_t start, cudaEvent_t stop)
19 checkCudaErrors(cudaEventElapsedTime(&time, start, stop));
23MUDA_INLINE Event::~Event()
26 checkCudaErrors(cudaEventDestroy(m_handle));
29MUDA_INLINE Event::Event(Event&& o) MUDA_NOEXCEPT : m_handle(o.m_handle)
34MUDA_INLINE Event& Event::operator=(Event&& o) MUDA_NOEXCEPT
40 checkCudaErrors(cudaEventDestroy(m_handle));
42 m_handle = o.m_handle;
QueryResult
Definition event.h:28