Kaydet (Commit) 9bda6170 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix build without OpenCL

Change-Id: I15e4495607113eb9bc55a31fee061a9d5384731b
üst 53e5b6be
......@@ -27,6 +27,7 @@
#include <cstdio>
#if HAVE_FEATURE_OPENCL
#ifdef DISABLE_DYNLOADING
extern "C" size_t getOpenCLPlatformCount(void);
......@@ -35,6 +36,7 @@ extern "C" bool switchOpenClDevice(const OUString*, bool, bool);
extern "C" sc::FormulaGroupInterpreter* createFormulaGroupOpenCLInterpreter();
extern "C" void getOpenCLDeviceInfo(size_t*, size_t*);
#endif
#endif
namespace sc {
......@@ -556,6 +558,9 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic()
void FormulaGroupInterpreter::fillOpenCLInfo(std::vector<OpenclPlatformInfo>& rPlatforms)
{
#if !HAVE_FEATURE_OPENCL
(void) rPlatforms;
#else
#ifndef DISABLE_DYNLOADING
osl::Module* pModule = getOpenCLModule();
if (!pModule)
......@@ -585,6 +590,7 @@ void FormulaGroupInterpreter::fillOpenCLInfo(std::vector<OpenclPlatformInfo>& rP
::fillOpenCLInfo(&aPlatforms[0], aPlatforms.size());
rPlatforms.swap(aPlatforms);
#endif
#endif
}
bool FormulaGroupInterpreter::switchOpenCLDevice(const OUString& rDeviceId, bool bAutoSelect, bool bForceEvaluation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment