[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source
Michael Meeks
michael.meeks at collabora.com
Thu Nov 28 17:58:13 PST 2013
sc/source/core/opencl/opencl_device.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 205d69bd65fc965d5ff436681189d3a1a1508757
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Nov 29 01:53:14 2013 +0000
GPU Calc: NULL scores are really very high, it's an inverse scale.
Change-Id: Iefe2cd87f499e624cbd3bd2583f6f0df90f4b4cb
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index 80062c6..371cdbf 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -394,7 +394,7 @@ ds_status pickBestDevice(ds_profile* profile, int* bestDeviceIdx)
ds_device device = profile->devices[d];
LibreOfficeDeviceScore *pScore = (LibreOfficeDeviceScore*)device.score;
- float fScore = -1;
+ float fScore = DBL_MAX;
if (pScore)
fScore = pScore->fTime;
else
More information about the Libreoffice-commits
mailing list