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

Don't use OpenCL unless the group is long enough

Change-Id: I37d54e39186fca2653717bb364072a2b283bcfb9
üst ef1cce46
...@@ -3653,6 +3653,12 @@ bool ScFormulaCell::InterpretFormulaGroup() ...@@ -3653,6 +3653,12 @@ bool ScFormulaCell::InterpretFormulaGroup()
if (mxGroup->meCalcState == sc::GroupCalcDisabled) if (mxGroup->meCalcState == sc::GroupCalcDisabled)
return false; return false;
if (GetSharedLength() < ScInterpreter::GetGlobalConfig().mnOpenCLMinimumFormulaGroupSize)
{
mxGroup->meCalcState = sc::GroupCalcDisabled;
return false;
}
switch (pCode->GetVectorState()) switch (pCode->GetVectorState())
{ {
case FormulaVectorEnabled: case FormulaVectorEnabled:
......
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