Changeset 5623


Ignore:
Timestamp:
Aug 30, 2017, 2:49:20 AM (3 months ago)
Author:
cameron
Message:

Temp buffer items needed on non-principal stream set should use relative calculations

File:
1 edited

Legend:

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

    r5620 r5623  
    10241024    // For each input and output buffer, copy over necessary data starting from the last
    10251025    // block boundary.
     1026    Value * itemCountNeeded[inputSetCount];
     1027    itemCountNeeded[0] = tempBlockItems;
    10261028    Value * finalItemCountNeeded[inputSetCount];
    1027     finalItemCountNeeded[0] = kb->CreateAdd(processedItemCount[0], tempBlockItems);
    10281029
    10291030    for (unsigned i = 0; i < mStreamSetInputBuffers.size(); i++) {
     
    10421043                Port port; unsigned ssIdx;
    10431044                std::tie(port, ssIdx) = getStreamPort(refSet);
    1044                 finalItemCountNeeded[i] = rate.CreateRatioCalculation(kb.get(), finalItemCountNeeded[ssIdx], doFinal);
     1045                itemCountNeeded[i] = rate.CreateRatioCalculation(kb.get(), itemCountNeeded[ssIdx], doFinal);
    10451046            }
    1046            
     1047            finalItemCountNeeded[i] = kb->CreateAdd(itemCountNeeded[i], processedItemCount[i]);
     1048
    10471049            Value * inputPtr = kb->CreatePointerCast(kb->getRawInputPointer(mStreamSetInputs[i].name, kb->getInt32(0), blockBasePos), bufPtrType);
    10481050           
Note: See TracChangeset for help on using the changeset viewer.