Project
Loading...
Searching...
No Matches
GPUReconstructionCPUDevice.cxx File Reference
#include "GPUReconstructionCPUDevice.h"
#include "GPUReconstructionCPUDeviceInternals.h"
#include "GPUReconstructionIncludes.h"
#include "GPUReconstructionKernelIncludes.h"
#include "GPUDef.h"
#include "GPUConstantMem.h"
#include "GPUDefParametersRuntime.h"
#include "GPULogging.h"
#include <algorithm>
#include <cstring>
#include <stdexcept>
#include <string>
#include <utility>
#include <dlfcn.h>
#include "GPUReconstructionProcessingKernels.inc"
#include "GPUReconstructionKernelList.h"

Go to the source code of this file.

Macros

#define GPUCA_CPUDEVICE_KRNL_RTC(x_class, x_attributes, x_arguments, x_forward, x_types, ...)
 
#define GPUCA_KRNL(...)   kernels.emplace_back(GPUCA_M_STR(GPUCA_CPUDEVICE_KRNL_RTC(__VA_ARGS__)));
 

Functions

GPUReconstruction * GPUReconstruction_Create_CPUDEVICE (const GPUSettingsDeviceBackend &cfg)
 

Detailed Description

Author
David Rohr

Definition in file GPUReconstructionCPUDevice.cxx.

Macro Definition Documentation

◆ GPUCA_CPUDEVICE_KRNL_RTC

#define GPUCA_CPUDEVICE_KRNL_RTC (   x_class,
  x_attributes,
  x_arguments,
  x_forward,
  x_types,
  ... 
)
Value:
extern "C" __attribute__((visibility("default"))) void GPUCA_M_CAT(krnl_, GPUCA_M_KRNL_NAME(x_class))(GPUConstantMem * pConstant, int32_t _iSector_internal, uint32_t nBlocks, uint32_t iBlockStart, uint32_t iBlockEnd GPUCA_M_STRIP(x_arguments)) \
{ \
for (uint32_t iBlock = iBlockStart; iBlock < iBlockEnd; iBlock++) { \
typename GPUCA_M_STRIP_FIRST(x_class)::GPUSharedMemory smem; \
GPUCA_M_STRIP_FIRST(x_class)::template Thread<GPUCA_M_KRNL_NUM(x_class)>(nBlocks, 1, iBlock, 0, smem, GPUCA_M_STRIP_FIRST(x_class)::Processor(*pConstant)[_iSector_internal] GPUCA_M_STRIP(x_forward)); \
} \
}
#define GPUCA_M_STRIP(X)
#define GPUCA_M_CAT(...)
#define GPUCA_M_STRIP_FIRST(a)
#define GPUCA_M_KRNL_NAME(...)
#define GPUCA_M_KRNL_NUM(...)
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)

Definition at line 433 of file GPUReconstructionCPUDevice.cxx.

◆ GPUCA_KRNL

#define GPUCA_KRNL (   ...)    kernels.emplace_back(GPUCA_M_STR(GPUCA_CPUDEVICE_KRNL_RTC(__VA_ARGS__)));

Function Documentation

◆ GPUReconstruction_Create_CPUDEVICE()

GPUReconstruction * GPUReconstruction_Create_CPUDEVICE ( const GPUSettingsDeviceBackend &  cfg)

Definition at line 36 of file GPUReconstructionCPUDevice.cxx.