Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CudaInterface.h File Reference
#include <cstddef>
#include <memory>
Include dependency graph for CudaInterface.h:
This graph shows which files directly or indirectly include this file:

Classes

class  RooBatchCompute::CudaInterface::Array< Data_t, Memory_t >
 A templated class for managing an array of data using a specified memory type. More...
 
class  RooBatchCompute::CudaInterface::CudaEvent
 
class  RooBatchCompute::CudaInterface::CudaStream
 

Namespaces

namespace  RooBatchCompute
 Namespace for dispatching RooFit computations to various backends.
 
namespace  RooBatchCompute::CudaInterface
 

Typedefs

template<class T >
using RooBatchCompute::CudaInterface::DeviceArray = Array< T, DeviceMemory >
 An array of specific type that is allocated on the device with cudaMalloc and freed with cudaFree.
 
template<class T >
using RooBatchCompute::CudaInterface::PinnedHostArray = Array< T, PinnedHostMemory >
 A pinned array of specific type that allocated on the host with cudaMallocHost and freed with cudaFreeHost.
 

Functions

template<class T >
void RooBatchCompute::CudaInterface::copyDeviceToDevice (const T *src, T *dest, std::size_t n, CudaStream *=nullptr)
 Copies data from the CUDA device to the CUDA device.
 
template<class T >
void RooBatchCompute::CudaInterface::copyDeviceToHost (const T *src, T *dest, std::size_t n, CudaStream *=nullptr)
 Copies data from the CUDA device to the host.
 
template<class T >
void RooBatchCompute::CudaInterface::copyHostToDevice (const T *src, T *dest, std::size_t n, CudaStream *=nullptr)
 Copies data from the host to the CUDA device.
 
float RooBatchCompute::CudaInterface::cudaEventElapsedTime (CudaEvent &begin, CudaEvent &end)
 Calculates the elapsed time between two CUDA events.
 
void RooBatchCompute::CudaInterface::cudaEventRecord (CudaEvent &event, CudaStream &stream)
 Records a CUDA event.