Commit 9b45cc2e authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Ignoring flag compute in SlicedEllpack -> it makes SlicedEllpack faster.

parent e07a0168
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ segmentsReduction( IndexType first, IndexType last, Fetch& fetch, Reduction& red
         const IndexType end = begin + segmentSize;
         RealType aux( zero );
         bool compute( true );
         for( IndexType globalIdx = begin; globalIdx< end && compute; globalIdx++  )
         for( IndexType globalIdx = begin; globalIdx< end; globalIdx++  )
            reduction( aux, fetch( segmentIdx, globalIdx, compute, args... ) );
         keeper( segmentIdx, aux );
      };
@@ -370,7 +370,7 @@ segmentsReduction( IndexType first, IndexType last, Fetch& fetch, Reduction& red
         const IndexType end = sliceOffsets_view[ sliceIdx + 1 ];
         RealType aux( zero );
         bool compute( true );
         for( IndexType globalIdx = begin; globalIdx < end && compute; globalIdx += SliceSize  )
         for( IndexType globalIdx = begin; globalIdx < end; globalIdx += SliceSize  )
            reduction( aux, fetch( segmentIdx, globalIdx, compute, args... ) );
         keeper( segmentIdx, aux );
      };
+2 −2
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ segmentsReduction( IndexType first, IndexType last, Fetch& fetch, Reduction& red
         const IndexType end = begin + segmentSize;
         RealType aux( zero );
         bool compute( true );
         for( IndexType globalIdx = begin; globalIdx< end && compute; globalIdx++  )
         for( IndexType globalIdx = begin; globalIdx< end; globalIdx++  )
            reduction( aux, fetch( segmentIdx, globalIdx, compute, args... ) );
         keeper( segmentIdx, aux );
      };
@@ -322,7 +322,7 @@ segmentsReduction( IndexType first, IndexType last, Fetch& fetch, Reduction& red
         const IndexType end = sliceOffsets_view[ sliceIdx + 1 ];
         RealType aux( zero );
         bool compute( true );
         for( IndexType globalIdx = begin; globalIdx < end && compute; globalIdx += SliceSize  )
         for( IndexType globalIdx = begin; globalIdx < end; globalIdx += SliceSize  )
            reduction( aux, fetch( segmentIdx, globalIdx, compute, args... ) );
         keeper( segmentIdx, aux );
      };