summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-07-12 12:45:42 +0100
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-24 23:29:42 -0400
commitf81290249dc5d4f782c2bebe1f9501559642efe0 (patch)
tree7739896a6ea33fe58a778859123a1ff330021f2e /sc
parent7b87af686205db076a7029f56f361eced2228fed (diff)
add SC_SOFTWARE tweak to force sw group interpret.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 9952612f9b1e..8de7713eadad 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -426,6 +426,11 @@ bool FormulaGroupInterpreterGroundwater::interpret(ScDocument& rDoc, const ScAdd
namespace opencl {
sc::FormulaGroupInterpreter *createFormulaGroupInterpreter()
{
+ if (getenv("SC_SOFTWARE"))
+ {
+ fprintf(stderr, "Create S/W interp\n");
+ return new sc::FormulaGroupInterpreterSoftware();
+ }
if (getenv("SC_GROUNDWATER"))
return new sc::FormulaGroupInterpreterGroundwater();
else