15#ifndef GPURECONSTRUCTIONOCL_H
16#define GPURECONSTRUCTIONOCL_H
28struct GPUReconstructionOCLInternals;
42 virtual int32_t
GPUChkErrInternal(
const int64_t error,
const char*
file, int32_t line)
const override;
46 int32_t
GPUDebug(
const char*
state =
"UNKNOWN", int32_t
stream = -1,
bool force =
false)
override;
57 template <
class T,
int32_t I = 0>
59 template <
class T, int32_t I = 0,
typename... Args>
65 template <
class T, int32_t I = 0,
typename... Args>
67 template <
class S,
class T,
int32_t I>
73 static const char* convertErrorToString(int32_t errorCode);
74 template <
typename T,
typename... Args>
75 static inline int64_t OCLsetKernelParameters_helper(cl_kernel& kernel, int32_t
i,
const T& firstParameter,
const Args&... restOfParameters);
76 template <
typename... Args>
77 static int64_t OCLsetKernelParameters(cl_kernel& kernel,
const Args&... args);
78 static int64_t clExecuteKernelA(cl_command_queue queue, cl_kernel krnl,
size_t local_size,
size_t global_size, cl_event* pEvent =
nullptr, cl_event* wait =
nullptr, cl_int nWaitEvents = 1);
o2::gpu::GPUReconstruction * GPUReconstruction_Create_OCL(const o2::gpu::GPUSettingsDeviceBackend &cfg)
void runKernelBackend(const krnlSetupArgs< T, I, Args... > &args)
int32_t ExitDevice_Runtime() override
void UpdateAutomaticProcessingSettings() override
void SynchronizeStream(int32_t stream) override
int32_t InitDevice_Runtime() override
int32_t GPUDebug(const char *state="UNKNOWN", int32_t stream=-1, bool force=false) override
void RecordMarker(deviceEvent *ev, int32_t stream) override
size_t WriteToConstantMemory(size_t offset, const void *src, size_t size, int32_t stream=-1, deviceEvent *ev=nullptr) override
size_t GPUMemCpy(void *dst, const void *src, size_t size, int32_t stream, int32_t toGPU, deviceEvent *ev=nullptr, deviceEvent *evList=nullptr, int32_t nEvents=1) override
void runKernelBackendInternal(const krnlSetupTime &_xyz, const Args &... args)
~GPUReconstructionOCLBackend() override
virtual int32_t GPUChkErrInternal(const int64_t error, const char *file, int32_t line) const override
GPUReconstructionOCLInternals * mInternals
void SynchronizeGPU() override
void SynchronizeEvents(deviceEvent *evList, int32_t nEvents=1) override
int32_t DoStuckProtection(int32_t stream, deviceEvent event) override
void ReleaseEvent(deviceEvent ev) override
void StreamWaitForEvents(int32_t stream, deviceEvent *evList, int32_t nEvents=1) override
bool IsEventDone(deviceEvent *evList, int32_t nEvents=1) override