Kaydet (Commit) b98edda0 authored tarafından I-Jui (Ray) Sung's avatar I-Jui (Ray) Sung

GPU Calc: re-enable parallel SUMIFS

Change-Id: I70797f089ead267d223772b73c4d093813716029
üst acc0fcd9
...@@ -434,7 +434,14 @@ public: ...@@ -434,7 +434,14 @@ public:
bIsStartFixed = mpDVR->IsStartFixed(); bIsStartFixed = mpDVR->IsStartFixed();
bIsEndFixed = mpDVR->IsEndFixed(); bIsEndFixed = mpDVR->IsEndFixed();
} }
// Should only be called by SumIfs. Yikes!
virtual bool NeedParallelReduction(void) const
{
assert(dynamic_cast<OpSumIfs*>(mpCodeGen.get()));
return GetWindowSize()> 100 &&
( (GetStartFixed() && GetEndFixed()) ||
(!GetStartFixed() && !GetEndFixed()) ) ;
}
virtual void GenSlidingWindowFunction(std::stringstream &) {} virtual void GenSlidingWindowFunction(std::stringstream &) {}
virtual std::string GenSlidingWindowDeclRef(bool=false) const virtual std::string GenSlidingWindowDeclRef(bool=false) const
......
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