LibreOffice Module opencl (master) 1
Classes | Enumerations | Functions
opencl_device_selection.h File Reference
#include <memory>
#include <float.h>
#include <clew/clew.h>
#include <tools/stream.hxx>
#include <tools/XmlWriter.hxx>
#include <tools/XmlWalker.hxx>
#include <rtl/math.hxx>
#include <opencl/OpenCLZone.hxx>
#include <utility>
#include <vector>
Include dependency graph for opencl_device_selection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ds_device
 
struct  ds_profile
 

Enumerations

enum  ds_status {
  DS_SUCCESS = 0 ,
  DS_INVALID_PROFILE = 1000 ,
  DS_MEMORY_ERROR ,
  DS_INVALID_PERF_EVALUATOR_TYPE ,
  DS_INVALID_PERF_EVALUATOR ,
  DS_PERF_EVALUATOR_ERROR ,
  DS_FILE_ERROR ,
  DS_UNKNOWN_DEVICE_TYPE ,
  DS_PROFILE_FILE_ERROR ,
  DS_SCORE_SERIALIZER_ERROR ,
  DS_SCORE_DESERIALIZER_ERROR
}
 
enum class  DeviceType {
  None ,
  NativeCPU ,
  OpenCLDevice
}
 

Functions

OString getPlatformInfoString (cl_platform_id aPlatformId, cl_platform_info aPlatformInfo)
 
OString getDeviceInfoString (cl_device_id aDeviceId, cl_device_info aDeviceInfo)
 
OString getDeviceType (cl_device_id aDeviceId)
 
bool getDeviceInfoBool (cl_device_id aDeviceId, cl_device_info aDeviceInfo)
 
ds_status initDSProfile (std::unique_ptr< ds_profile > &rProfile, OString const &rVersion)
 
ds_status writeProfile (const OUString &rStreamName, std::unique_ptr< ds_profile > const &pProfile)
 
ds_status readProfile (const OUString &rStreamName, std::unique_ptr< ds_profile > const &pProfile)
 

Enumeration Type Documentation

◆ DeviceType

enum class DeviceType
strong
Enumerator
None 
NativeCPU 
OpenCLDevice 

Definition at line 48 of file opencl_device_selection.h.

◆ ds_status

enum ds_status
Enumerator
DS_SUCCESS 
DS_INVALID_PROFILE 
DS_MEMORY_ERROR 
DS_INVALID_PERF_EVALUATOR_TYPE 
DS_INVALID_PERF_EVALUATOR 
DS_PERF_EVALUATOR_ERROR 
DS_FILE_ERROR 
DS_UNKNOWN_DEVICE_TYPE 
DS_PROFILE_FILE_ERROR 
DS_SCORE_SERIALIZER_ERROR 
DS_SCORE_DESERIALIZER_ERROR 

Definition at line 32 of file opencl_device_selection.h.

Function Documentation

◆ getDeviceInfoBool()

bool getDeviceInfoBool ( cl_device_id  aDeviceId,
cl_device_info  aDeviceInfo 
)
inline

Definition at line 129 of file opencl_device_selection.h.

Referenced by initDSProfile().

◆ getDeviceInfoString()

OString getDeviceInfoString ( cl_device_id  aDeviceId,
cl_device_info  aDeviceInfo 
)
inline

Definition at line 104 of file opencl_device_selection.h.

References temporary().

Referenced by initDSProfile(), and openclwrapper::switchOpenCLDevice().

◆ getDeviceType()

OString getDeviceType ( cl_device_id  aDeviceId)
inline

Definition at line 111 of file opencl_device_selection.h.

References sType.

Referenced by initDSProfile().

◆ getPlatformInfoString()

OString getPlatformInfoString ( cl_platform_id  aPlatformId,
cl_platform_info  aPlatformInfo 
)
inline

Definition at line 97 of file opencl_device_selection.h.

References temporary().

Referenced by initDSProfile().

◆ initDSProfile()

ds_status initDSProfile ( std::unique_ptr< ds_profile > &  rProfile,
OString const &  rVersion 
)
inline

◆ readProfile()

ds_status readProfile ( const OUString &  rStreamName,
std::unique_ptr< ds_profile > const &  pProfile 
)
inline

◆ writeProfile()

ds_status writeProfile ( const OUString &  rStreamName,
std::unique_ptr< ds_profile > const &  pProfile 
)
inline