LibreOffice Module opencl (master) 1
|
#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>
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) |
|
strong |
Enumerator | |
---|---|
None | |
NativeCPU | |
OpenCLDevice |
Definition at line 48 of file opencl_device_selection.h.
enum ds_status |
Definition at line 32 of file opencl_device_selection.h.
|
inline |
Definition at line 129 of file opencl_device_selection.h.
Referenced by initDSProfile().
|
inline |
Definition at line 104 of file opencl_device_selection.h.
References temporary().
Referenced by initDSProfile(), and openclwrapper::switchOpenCLDevice().
|
inline |
Definition at line 111 of file opencl_device_selection.h.
References sType.
Referenced by initDSProfile().
|
inline |
Definition at line 97 of file opencl_device_selection.h.
References temporary().
Referenced by initDSProfile().
|
inline |
Definition at line 138 of file opencl_device_selection.h.
References ds_device::aDeviceID, ds_device::bDeviceAvailable, ds_device::bDeviceCompilerAvailable, ds_device::bDeviceLinkerAvailable, DS_SUCCESS, err, ds_device::eType, getDeviceInfoBool(), getDeviceInfoString(), getDeviceType(), getPlatformInfoString(), i, NativeCPU, OpenCLDevice, ds_device::sDeviceExtensions, ds_device::sDeviceName, ds_device::sDeviceOpenCLVersion, ds_device::sDeviceType, ds_device::sDeviceVendor, ds_device::sDeviceVersion, ds_device::sDriverVersion, ds_device::sPlatformExtensions, ds_device::sPlatformName, ds_device::sPlatformProfile, ds_device::sPlatformVendor, and ds_device::sPlatformVersion.
Referenced by getDeviceSelection().
|
inline |
Definition at line 306 of file opencl_device_selection.h.
References ds_device::bErrors, tools::XmlWalker::children(), tools::XmlWalker::content(), DS_FILE_ERROR, DS_INVALID_PROFILE, DS_PROFILE_FILE_ERROR, DS_SUCCESS, ds_device::eType, ds_device::fTime, tools::XmlWalker::isValid(), tools::XmlWalker::name(), NativeCPU, tools::XmlWalker::next(), None, tools::XmlWalker::open(), OpenCLDevice, tools::XmlWalker::parent(), ds_device::sDeviceName, ds_device::sDriverVersion, and sName.
Referenced by getDeviceSelection().
|
inline |
Definition at line 237 of file opencl_device_selection.h.
References ds_device::bErrors, tools::XmlWriter::content(), DS_FILE_ERROR, DS_INVALID_PROFILE, DS_SUCCESS, tools::XmlWriter::endDocument(), tools::XmlWriter::endElement(), ds_device::eType, ds_device::fTime, NativeCPU, OpenCLDevice, ds_device::sDeviceName, ds_device::sDriverVersion, tools::XmlWriter::startDocument(), and tools::XmlWriter::startElement().
Referenced by getDeviceSelection().