Ignore:
Timestamp:
Feb 6, 2018, 4:57:35 PM (15 months ago)
Author:
nmedfort
Message:

More work on the pipeline I/O rate handling

File:
1 edited

Legend:

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

    r5857 r5865  
    1414PDEPkernel::PDEPkernel(const std::unique_ptr<kernel::KernelBuilder> & kb, unsigned streamCount, unsigned swizzleFactor, unsigned PDEP_width, std::string name)
    1515: MultiBlockKernel(name + "",
    16                   {Binding{kb->getStreamSetTy(), "PDEPmarkerStream", BoundedRate(0, 1)},
     16                  {Binding{kb->getStreamSetTy(), "PDEPmarkerStream"},
    1717                   Binding{kb->getStreamSetTy(streamCount), "sourceStreamSet", BoundedRate(0, 1)}},
    18                   {Binding{kb->getStreamSetTy(streamCount), "outputStreamSet", RateEqualTo("PDEPmarkerStream")}},
     18                  {Binding{kb->getStreamSetTy(streamCount), "outputStreamSet"}},
    1919                  {}, {}, {})
    2020, mSwizzleFactor(swizzleFactor)
     
    154154
    155155    kb->SetInsertPoint(terminate);
    156     Value * itemsDone = kb->CreateMul(blockOffsetPhi, blockWidth);
    157     itemsDone = kb->CreateSelect(kb->CreateICmpULT(itemsToDo, itemsDone), itemsToDo, itemsDone);
    158     kb->setProcessedItemCount("PDEPmarkerStream", kb->CreateAdd(itemsDone, kb->getProcessedItemCount("PDEPmarkerStream")));
     156//    Value * itemsDone = kb->CreateMul(blockOffsetPhi, blockWidth);
     157//    itemsDone = kb->CreateSelect(kb->CreateICmpULT(itemsToDo, itemsDone), itemsToDo, itemsDone);
     158//    kb->setProcessedItemCount("PDEPmarkerStream", kb->CreateAdd(itemsDone, kb->getProcessedItemCount("PDEPmarkerStream")));
    159159    kb->setProcessedItemCount("sourceStreamSet", updatedProcessedSourceBitsPhi);
    160160
Note: See TracChangeset for help on using the changeset viewer.