Ignore:
Timestamp:
Aug 16, 2016, 11:47:09 AM (3 years ago)
Author:
lindanl
Message:

Block number increased by Stride Blocks

File:
1 edited

Legend:

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

    r5123 r5127  
    149149   
    150150    iBuilder->CreateCall(doBlockFunction, {self});
    151     setScalarField(self, blockNoScalar, iBuilder->CreateAdd(blockNo, ConstantInt::get(iBuilder->getSizeTy(), 1)));
     151    setScalarField(self, blockNoScalar, iBuilder->CreateAdd(blockNo, ConstantInt::get(iBuilder->getSizeTy(), iBuilder->getStride() / iBuilder->getBitBlockWidth())));
    152152    blocksToDo = iBuilder->CreateSub(blocksRemaining, ConstantInt::get(iBuilder->getSizeTy(), 1));
    153153    blocksRemaining->addIncoming(blocksToDo, blockLoop);
Note: See TracChangeset for help on using the changeset viewer.