Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::Detail::CudaInterface::CudaStream Class Reference

Definition at line 58 of file CudaInterface.h.

Public Member Functions

 CudaStream ()
 Creates a new CUDA stream.
 
bool isActive ()
 Checks if a CUDA stream is currently active.
 
void waitForEvent (CudaEvent &)
 Makes a CUDA stream wait for a CUDA event.
 

Private Attributes

std::unique_ptr< void, Deleter< CudaStream > > _ptr
 

#include <RooFit/Detail/CudaInterface.h>

Constructor & Destructor Documentation

◆ CudaStream()

RooFit::Detail::CudaInterface::CudaStream::CudaStream ( )

Creates a new CUDA stream.

Returns
CudaStream object representing the new stream.

Definition at line 107 of file CudaInterface.cu.

Member Function Documentation

◆ isActive()

bool RooFit::Detail::CudaInterface::CudaStream::isActive ( )

Checks if a CUDA stream is currently active.

Returns
True if the stream is active, false otherwise.

Definition at line 119 of file CudaInterface.cu.

◆ waitForEvent()

void RooFit::Detail::CudaInterface::CudaStream::waitForEvent ( CudaEvent event)

Makes a CUDA stream wait for a CUDA event.

Parameters
[in]eventCudaEvent object representing the event to wait for.

Definition at line 135 of file CudaInterface.cu.

Member Data Documentation

◆ _ptr

std::unique_ptr<void, Deleter<CudaStream> > RooFit::Detail::CudaInterface::CudaStream::_ptr
private

Definition at line 71 of file CudaInterface.h.

  • roofit/roofitcuda/inc/RooFit/Detail/CudaInterface.h
  • roofit/roofitcuda/src/CudaInterface.cu