diff options
author | haochen <haochen@multicorewareinc.com> | 2014-01-09 13:01:17 +0800 |
---|---|---|
committer | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2014-01-09 14:48:18 -0600 |
commit | 9f9a7eaa3b2075ee2f40d346563dd4ee14ebcd58 (patch) | |
tree | be41830ea700043773385f5d02d49f2dd91342e6 /sc/source | |
parent | a11eae53522aa08253a73306f84c233fe0633c15 (diff) |
GPU Calc: masked formulae that aren't supported well on some OpenCL platforms
Change-Id: I67849c6339ecfa5940285f1921d9b8fd4959ba63
Signed-off-by: haochen <haochen@multicorewareinc.com>
Signed-off-by: I-Jui (Ray) Sung <ray@multicorewareinc.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 9e31fd84bdd1..d1d601e16025 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2238,9 +2238,9 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( case ocGauss: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpGauss)); break; - case ocGeoMean: + /*case ocGeoMean: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpGeoMean)); - break; + break;*/ case ocHarMean: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpHarMean)); break; @@ -2313,10 +2313,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpWeibull)); break; - case ocMedian: + /*case ocMedian: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpMedian)); - break; + break;*/ case ocGDA: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpDDB)); @@ -2329,18 +2329,18 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpSumIfs)); break; - case ocVBD: + /*case ocVBD: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpVDB)); - break; + break;*/ case ocKurt: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpKurt)); break; - case ocZZR: + /*case ocZZR: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpNper)); - break; + break;*/ case ocNormDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpNormdist)); @@ -2449,10 +2449,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpLogNormDist)); break; - case ocGammaDist: + /*case ocGammaDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpGammaDist)); - break; + break;*/ case ocLn: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpLn)); @@ -2477,10 +2477,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpVar)); break; - case ocChiDist: + /*case ocChiDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpChiDist)); - break; + break;*/ case ocPow: case ocPower: mvSubArguments.push_back(SoPHelper(ts, @@ -2490,7 +2490,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpOdd)); break; - case ocChiSqDist: + /*case ocChiSqDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpChiSqDist)); break; @@ -2501,15 +2501,15 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( case ocGammaInv: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpGammaInv)); - break; + break;*/ case ocFloor: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpFloor)); break; - case ocFInv: + /*case ocFInv: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpFInv)); - break; + break;*/ case ocFTest: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpFTest)); @@ -2590,10 +2590,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpBitXor)); break; - case ocChiInv: + /*case ocChiInv: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpChiInv)); - break; + break;*/ case ocPoissonDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpPoisson)); @@ -2656,10 +2656,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpProduct)); break; - case ocHypGeomDist: + /*case ocHypGeomDist: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpHypGeomDist)); - break; + break;*/ case ocSumX2MY2: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpSumX2MY2)); @@ -2668,10 +2668,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpSumX2PY2)); break; - case ocBetaInv: + /*case ocBetaInv: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpBetainv)); - break; + break;*/ case ocTTest: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpTTest)); @@ -2680,10 +2680,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpTDist)); break; - case ocTInv: + /*case ocTInv: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpTInv)); - break; + break;*/ case ocSumXMY2: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i],new OpSumXMY2)); @@ -2844,10 +2844,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpSumIf)); break; - case ocNegSub: + /*case ocNegSub: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpNegSub)); - break; + break;*/ case ocAveDev: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpAveDev)); @@ -2908,11 +2908,11 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( { mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpFvschedule)); } - else if ( !(pChild->GetExternal().compareTo(OUString( + /*else if ( !(pChild->GetExternal().compareTo(OUString( "com.sun.star.sheet.addin.Analysis.getYield")))) { mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpYield)); - } + }*/ else if ( !(pChild->GetExternal().compareTo(OUString( "com.sun.star.sheet.addin.Analysis.getYielddisc")))) { @@ -2975,12 +2975,12 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpCoupnum)); } - else if ( !(pChild->GetExternal().compareTo(OUString( + /*else if ( !(pChild->GetExternal().compareTo(OUString( "com.sun.star.sheet.addin.Analysis.getDuration")))) { mvSubArguments.push_back( SoPHelper(ts, ft->Children[i], new OpDuration_ADD)); - } + }*/ else if ( !(pChild->GetExternal().compareTo(OUString( "com.sun.star.sheet.addin.Analysis.getAmordegrc")))) { @@ -3088,6 +3088,8 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpBesselj)); } + else + throw UnhandledToken(pChild, "unhandled opcode"); break; default: |