Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ComputeFunctions.cxx File Reference
#include "RooBatchCompute.h"
#include "RooNaNPacker.h"
#include "RooVDTHeaders.h"
#include "Batches.h"
#include <TMath.h>
#include <RooHeterogeneousMath.h>
Include dependency graph for ComputeFunctions.cxx:

Namespaces

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

Macros

#define BEGIN   0
 
#define STEP   1
 

Functions

__rooglobal__ void RooBatchCompute::RF_ARCH::computeAddPdf (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeArgusBG (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeBernstein (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeBifurGauss (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeBMixDecay (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeBreitWigner (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeBukin (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeCBShape (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeChebychev (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeChiSquare (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeDeltaFunction (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeDstD0BG (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeExponential (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeGamma (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeGaussian (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeGaussModelExpBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeIdentity (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeJohnson (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeLandau (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeLognormal (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeNegativeLogarithms (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeNormalizedPdf (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeNovosibirsk (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computePoisson (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computePolynomial (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeProdPdf (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeRatio (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelCosBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelCoshBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelExpBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelLinBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelQuadBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelSinBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeTruthModelSinhBasis (BatchesHandle batches)
 
__rooglobal__ void RooBatchCompute::RF_ARCH::computeVoigtian (BatchesHandle batches)
 
std::vector< void(*)(BatchesHandle)> RooBatchCompute::RF_ARCH::getFunctions ()
 Returns a std::vector of pointers to the compute functions in this file.
 

Detailed Description

This file contains vectorizable computation functions for PDFs and other Roofit objects.

The same source file can also be compiled with nvcc. All functions have a single Batches object as an argument passed by value, which contains all the information necessary for the computation. In case of cuda computations, the loops have a step (stride) the size of the grid which allows for reusing the same code as the cpu implementations, easier debugging and in terms of performance, maximum memory coalescing. For more details, see https://developer.nvidia.com/blog/cuda-pro-tip-write-flexible-kernels-grid-stride-loops/

Definition in file ComputeFunctions.cxx.

Macro Definition Documentation

◆ BEGIN

#define BEGIN   0

Definition at line 39 of file ComputeFunctions.cxx.

◆ STEP

#define STEP   1

Definition at line 40 of file ComputeFunctions.cxx.