Ignore:
Timestamp:
Jan 16, 2017, 9:55:26 AM (2 years ago)
Author:
cameron
Message:

Move responsibility for ProducedItemCount? into doSegment unless overridden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/editd_gpu_kernel.cpp

    r5260 r5261  
    4242    setScalarField(self, "EOFmask", iBuilder->bitblock_mask_from(remaining));
    4343    iBuilder->CreateCall(doBlockFunction, doBlockArgs);
    44     /* Adjust the produced item count */
    45     Value * produced = getProducedItemCount(self, "ResultStream");
    46     produced = iBuilder->CreateSub(produced, iBuilder->getSize(iBuilder->getStride()));
    47     setProducedItemCount(self, "ResultStream", iBuilder->CreateAdd(produced, remaining));
    4844    iBuilder->CreateRetVoid();
    4945    iBuilder->restoreIP(savePoint);
     
    119115        iBuilder->CreateStore(iBuilder->CreateAnd(e[mPatternLen - 1][j], iBuilder->CreateNot(e[mPatternLen - 1][j - 1])), ptr);
    120116    }
    121 
    122     Value * produced = getProducedItemCount(kernelStuctParam, "ResultStream");
    123     produced = iBuilder->CreateAdd(produced, iBuilder->getSize(iBuilder->getStride()));
    124     setProducedItemCount(kernelStuctParam, "ResultStream", produced);
    125        
    126117    iBuilder->CreateRetVoid();
    127118    iBuilder->restoreIP(savePoint);
     
    138129mEditDistance(dist),
    139130mPatternLen(pattLen) {
    140 
     131setDoBlockUpdatesProducedItemCountsAttribute(false);
    141132}
    142133
Note: See TracChangeset for help on using the changeset viewer.