[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Thu Oct 30 15:03:04 PDT 2014


 sc/source/core/opencl/opencl_device.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2f55701c550950ab4530df3c9ca305a819e3cabb
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Oct 31 00:02:05 2014 +0200

    Add a few informative SAL_INFOs
    
    Change-Id: I1ac6366714acd7ec3e74b7afb4670c73825d1032

diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index 90b4f3d..2703040 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -249,6 +249,7 @@ ds_status evaluateScoreForDevice(ds_device* device, void* evalData)
             //buildOption = "-D KHR_DP_EXTENSION -Dfp_t=double -Dfp_t4=double4 -Dfp_t16=double16";
             tmpStr.append(" -DKHR_DP_EXTENSION");
             buildOption = tmpStr.c_str();
+            SAL_INFO("sc.opencl.device", "... has cl_khr_fp64");
         }
         else if ((std::string(aExtInfo)).find("cl_amd_fp64") != std::string::npos)
         {
@@ -256,6 +257,7 @@ ds_status evaluateScoreForDevice(ds_device* device, void* evalData)
             //buildOption = "-D AMD_DP_EXTENSION -Dfp_t=double -Dfp_t4=double4 -Dfp_t16=double16";
             tmpStr.append(" -DAMD_DP_EXTENSION");
             buildOption = tmpStr.c_str();
+            SAL_INFO("sc.opencl.device", "... has cl_amd_fp64");
         }
         delete[] aExtInfo;
 
@@ -265,6 +267,7 @@ ds_status evaluateScoreForDevice(ds_device* device, void* evalData)
             device->score = (void*)new LibreOfficeDeviceScore;
             ((LibreOfficeDeviceScore*)device->score)->fTime = DBL_MAX;
             ((LibreOfficeDeviceScore*)device->score)->bNoCLErrors = true;
+            SAL_INFO("sc.opencl.device", "... no fp64 support");
         }
         else
         {


More information about the Libreoffice-commits mailing list