10#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OPENCLWRAPPER_HXX
11#define INCLUDED_SC_SOURCE_CORE_OPENCL_OPENCLWRAPPER_HXX
18#include <rtl/ustring.hxx>
20#define MAX_CLFILE_NUM 50
21#define OPENCL_CMDQUEUE_SIZE 1
52 static bool isOpenCLEnabled();
75 bool bForceEvaluation,
76 OUString& rOutSelectedDeviceVersionIDString);
bool switchOpenCLDevice(std::u16string_view aDevice, bool bAutoSelect, bool bForceEvaluation, OUString &rOutSelectedDeviceVersionIDString)
Used to set or switch between OpenCL devices.
const char * errorString(cl_int nError)
Return a textual representation of an OpenCL error code.
const std::vector< OpenCLPlatformInfo > & fillOpenCLInfo()
void setOpenCLCmdQueuePosition(int nPos)
Set the current command queue position in case of multiple command queues for a given device.
void getOpenCLDeviceName(OUString &rDeviceName, OUString &rPlatformName)
bool buildProgramFromBinary(const char *buildOption, GPUEnv *gpuInfo, const char *filename, int idx)
void setKernelEnv(KernelEnv *envInfo)
sal_uInt64 kernelFailures
bool generatBinFromKernelSource(cl_program program, const char *clFileName)
void getOpenCLDeviceInfo(size_t &rDeviceId, size_t &rPlatformId)
#define OPENCL_CMDQUEUE_SIZE
cl_platform_id mpPlatformID
bool mbCommandQueueInitialized
cl_command_queue mpkCmdQueue