Ignore:
Timestamp:
Dec 3, 2017, 12:40:40 PM (20 months ago)
Author:
nmedfort
Message:

Bug fixes and simplified MultiBlockKernel? logic

File:
1 edited

Legend:

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

    r5718 r5755  
    2525}
    2626
    27 void PDEPkernel::generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & kb, Value * const numOfStrides) {
     27Value * PDEPkernel::generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & kb, Value * const numOfStrides) {
    2828    BasicBlock * entry = kb->GetInsertBlock();
    2929    BasicBlock * checkLoopCond = kb->CreateBasicBlock("checkLoopCond");
     
    134134    itemsDone = kb->CreateSelect(kb->CreateICmpULT(itemsToDo, itemsDone), itemsToDo, itemsDone);
    135135    kb->setProcessedItemCount("PDEPmarkerStream", kb->CreateAdd(itemsDone, kb->getProcessedItemCount("PDEPmarkerStream")));   
    136     kb->setProcessedItemCount("sourceStreamSet", updatedProcessedBitsPhi);   
     136    kb->setProcessedItemCount("sourceStreamSet", updatedProcessedBitsPhi);
     137
     138    return numOfStrides;
    137139}
    138140
Note: See TracChangeset for help on using the changeset viewer.