LibreOffice Module opencl (master) 1
Classes | Namespaces | Macros | Functions
openclwrapper.hxx File Reference
#include <vector>
#include <clew/clew.h>
#include <opencl/opencldllapi.h>
#include <rtl/ustring.hxx>
#include <cstdio>
Include dependency graph for openclwrapper.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openclwrapper::KernelEnv
 
struct  openclwrapper::GPUEnv
 

Namespaces

namespace  openclwrapper
 

Macros

#define MAX_CLFILE_NUM   50
 
#define OPENCL_CMDQUEUE_SIZE   1
 

Functions

bool openclwrapper::canUseOpenCL ()
 
bool openclwrapper::generatBinFromKernelSource (cl_program program, const char *clFileName)
 
bool openclwrapper::buildProgramFromBinary (const char *buildOption, GPUEnv *gpuInfo, const char *filename, int idx)
 
void openclwrapper::setKernelEnv (KernelEnv *envInfo)
 
const std::vector< OpenCLPlatformInfo > & openclwrapper::fillOpenCLInfo ()
 
bool openclwrapper::switchOpenCLDevice (std::u16string_view aDevice, bool bAutoSelect, bool bForceEvaluation, OUString &rOutSelectedDeviceVersionIDString)
 Used to set or switch between OpenCL devices. More...
 
void openclwrapper::getOpenCLDeviceInfo (size_t &rDeviceId, size_t &rPlatformId)
 
void openclwrapper::getOpenCLDeviceName (OUString &rDeviceName, OUString &rPlatformName)
 
void openclwrapper::setOpenCLCmdQueuePosition (int nPos)
 Set the current command queue position in case of multiple command queues for a given device. More...
 
const char * openclwrapper::errorString (cl_int nError)
 Return a textual representation of an OpenCL error code. More...
 

Macro Definition Documentation

◆ MAX_CLFILE_NUM

#define MAX_CLFILE_NUM   50

Definition at line 20 of file openclwrapper.hxx.

◆ OPENCL_CMDQUEUE_SIZE

#define OPENCL_CMDQUEUE_SIZE   1

Definition at line 21 of file openclwrapper.hxx.