summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-11-29 02:24:50 +0000
committerMichael Meeks <michael.meeks@collabora.com>2013-11-29 02:24:50 +0000
commitfc5340dbd927fa9c821e7861cfe5c34a856e436a (patch)
tree3b25edfd62a4ed9778907a8fff80b063a192ac1b /sc/source
parent09a071f44767392aaf4f22f2e9da773a79618987 (diff)
GPU Calc: WaE fixes.
Change-Id: Ifa3621a21e03aff313198fc29044b93c8f57001c
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/opencl/opencl_device.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index a91883f6b0d8..f6ab41f7fbe8 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -402,7 +402,7 @@ ds_status pickBestDevice(ds_profile* profile, int* bestDeviceIdx)
ds_device device = profile->devices[d];
LibreOfficeDeviceScore *pScore = (LibreOfficeDeviceScore*)device.score;
- float fScore = DBL_MAX;
+ double fScore = DBL_MAX;
if (pScore)
fScore = pScore->fTime;
else
@@ -480,7 +480,10 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
}
if (DS_SUCCESS != status)
{
- if (!bForceSelection) LOG_PRINTF("[DS] Profile file not available (" << fileName << "); performing profiling.");
+ if (!bForceSelection)
+ {
+ LOG_PRINTF("[DS] Profile file not available (" << fileName << "); performing profiling.");
+ }
/* Populate input data for micro-benchmark */
boost::scoped_ptr<LibreOfficeDeviceEvaluationIO> testData(new LibreOfficeDeviceEvaluationIO);