Ignore:
Timestamp:
Jan 7, 2017, 12:26:09 PM (3 years ago)
Author:
cameron
Message:

Separate processedItemCounts and producedItemCounts for each stream set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r5246 r5247  
    156156    Value * basisBitsBlock_ptr = getStreamSetBlockPtr(self, "basisBits", blockNo);
    157157    Value * delCountBlock_ptr = getStreamSetBlockPtr(self, "deletionCounts", blockNo);
    158     Value * i16UnitsGenerated = getProducedItemCount(self); // units generated to buffer
     158    Value * i16UnitsGenerated = getProducedItemCount(self, "i16Stream"); // units generated to buffer
    159159    Value * i16BlockNo = iBuilder->CreateUDiv(i16UnitsGenerated, stride);
    160160
     
    194194
    195195    i16UnitsGenerated = iBuilder->CreateAdd(i16UnitsGenerated, iBuilder->CreateZExt(offset, iBuilder->getSizeTy()));
    196     setProducedItemCount(self, i16UnitsGenerated);
     196    setProducedItemCount(self, "i16Stream", i16UnitsGenerated);
    197197    iBuilder->CreateRetVoid();
    198198    iBuilder->restoreIP(savePoint);
     
    213213        doBlockArgs.push_back(&*args++);
    214214    }
    215     Value * i16UnitsGenerated = getProducedItemCount(self); // units generated to buffer
     215    Value * i16UnitsGenerated = getProducedItemCount(self, "i16Stream"); // units generated to buffer
    216216
    217217    iBuilder->CreateCall(doBlockFunction, doBlockArgs);
    218     i16UnitsGenerated = getProducedItemCount(self); // units generated to buffer
     218    i16UnitsGenerated = getProducedItemCount(self, "i16Stream"); // units generated to buffer
    219219    for (unsigned i = 0; i < mStreamSetOutputs.size(); i++) {
    220220        Value * ssStructPtr = getStreamSetStructPtr(self, mStreamSetOutputs[i].name);
Note: See TracChangeset for help on using the changeset viewer.