From 8d3dd678bf9fd50a736cc0ff956f1efd7e660502 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 20 Apr 2016 22:19:47 +0900 Subject: tdf#99453 opencl: better logging of devices and device selection changes: - Clew misses a lot of things, added defines needed for gathering platform and device info. - Refactored profile saving and loading to use libxml2 instead the weird type of saving the profile data. - Added an additional "log" file which is similar to the OpenGL but it writes the OpenCL relevant information like which devices and platforms are available (+ all the extra useful version information) and which device was selected (if any at all). (cherry picked from commit 334e2dc9c3da4519e31e0452a40d3a958c401876) Change-Id: I0fe793c756f8f4f1761fe120fc361df36e581903 Reviewed-on: https://gerrit.libreoffice.org/24303 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- opencl/source/openclwrapper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'opencl/source/openclwrapper.cxx') diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 7bbcb2c3bce3..e488f79fb8bc 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -703,9 +703,8 @@ bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEv rtl::Bootstrap::expandMacros(url); OUString path; osl::FileBase::getSystemPathFromFileURL(url,path); - OString dsFileName = rtl::OUStringToOString(path, RTL_TEXTENCODING_UTF8); - ds_device pSelectedDevice = getDeviceSelection(dsFileName.getStr(), bForceEvaluation); - pDeviceId = pSelectedDevice.oclDeviceID; + ds_device pSelectedDevice = getDeviceSelection(path, bForceEvaluation); + pDeviceId = pSelectedDevice.aDeviceID; } -- cgit v1.2.3