Ignore:
Timestamp:
Sep 15, 2017, 8:08:01 AM (22 months ago)
Author:
cameron
Message:

Fixes for multiblock kernel builder

File:
1 edited

Legend:

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

    r5638 r5639  
    4040    // Get pointer to start of the output StreamSetBlock we're currently writing to
    4141    Value * outputStreamPtr = &*(args);
    42    
     42
    4343    Constant * blockWidth = kb->getSize(kb->getBitBlockWidth());
    4444    Value * blocksToDo = kb->CreateUDivCeil(itemsToDo, blockWidth); // 1 if this is the final block
     
    134134    Value * itemsDone = kb->CreateMul(blockOffsetPhi, blockWidth);
    135135    itemsDone = kb->CreateSelect(kb->CreateICmpULT(itemsToDo, itemsDone), itemsToDo, itemsDone);
    136     kb->setProcessedItemCount("PDEPmarkerStream", kb->CreateAdd(itemsDone, kb->getProcessedItemCount("PDEPmarkerStream")));
     136    kb->setProcessedItemCount("PDEPmarkerStream", kb->CreateAdd(itemsDone, kb->getProcessedItemCount("PDEPmarkerStream")));   
    137137    kb->setProcessedItemCount("sourceStreamSet", updatedProcessedBitsPhi);   
    138138}
Note: See TracChangeset for help on using the changeset viewer.