packages/CudaUtils/cuda_utils/Event.cc
//===========================================================================//
// DEVICE SPECIALIZATION
//===========================================================================//
/*!
 * \brief Create the event, with optional flags
 *
 * \pre Device must already have been set up.
 */
DEVICE SPECIALIZATION
\brief Create the event, with optional flags

\pre Device must already have been set up.
DEVICE SPECIALIZATION \ brief Create the event with optional flags \ pre Device must already have been set up .
Event<Device>::Event(unsigned int flags)
 : d_handle(NULL)
{
    typedef cuda::Hardware<Arch_t> Hardware_t;
    REQUIRE(Hardware_t::have_acquired());
    CudaCall(cudaEventCreateWithFlags(&d_handle, flags));
    ENSURE(d_handle != NULL);
}
Event < Device > :: Event ( unsigned int flags ) : d_handle ( NULL ) { typedef cuda :: Hardware < Arch_t > Hardware_t ; REQUIRE ( Hardware_t :: have_acquired ( ) ) ; CudaCall ( cudaEventCreateWithFlags ( & d_handle , flags ) ) ; ENSURE ( d_handle != NULL ) ; }
DEVICE SPECIALIZATION
 \brief Create the event, with optional flags
DEVICE SPECIALIZATION \ brief Create the event with optional flags