Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CudaInterface.cu File Reference
#include "CudaInterface.h"
#include <stdexcept>
#include <sstream>
#include <string>
Include dependency graph for CudaInterface.cu:

Namespaces

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

Macros

#define ERRCHECK(err)   __checkCudaErrors((err), __func__, __FILE__, __LINE__)
 

Functions

static void __checkCudaErrors (cudaError_t error, std::string func, std::string file, int line)
 
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.
 

Macro Definition Documentation

◆ ERRCHECK

#define ERRCHECK (   err)    __checkCudaErrors((err), __func__, __FILE__, __LINE__)

Definition at line 19 of file CudaInterface.cu.

Function Documentation

◆ __checkCudaErrors()

static void __checkCudaErrors ( cudaError_t  error,
std::string  func,
std::string  file,
int  line 
)
inlinestatic

Definition at line 20 of file CudaInterface.cu.