Ignore:
Timestamp:
Oct 14, 2016, 10:07:07 AM (3 years ago)
Author:
cameron
Message:

Fixes for NVPTX (but strideBlocks needs further investigation), u8u16

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r5192 r5193  
    222222    generateDoBlockLogic(self, blockNo);
    223223    setBlockNo(self, iBuilder->CreateAdd(blockNo, strideBlocks));
    224     blocksRemaining->addIncoming(iBuilder->CreateSub(blocksRemaining, strideBlocks), blockLoopBody);
     224    blocksRemaining->addIncoming(iBuilder->CreateSub(blocksRemaining, ConstantInt::get(size_ty, 1)), blockLoopBody);
    225225    iBuilder->CreateBr(blockLoopCond);
    226226   
  • icGREP/icgrep-devel/icgrep/kernels/p2s_kernel.cpp

    r5192 r5193  
    237237        Value * producerPosPtr = mStreamSetOutputBuffers[i]->getProducerPosPtr(ssStructPtr);
    238238        iBuilder->CreateAtomicStoreRelease(i16UnitsGenerated, producerPosPtr);
    239     iBuilder->CreateRetVoid();
    240     iBuilder->restoreIP(savePoint);
    241 }
    242    
    243    
    244 }
     239    }
     240    iBuilder->CreateRetVoid();
     241    iBuilder->restoreIP(savePoint);
     242}
     243   
     244   
     245}
Note: See TracChangeset for help on using the changeset viewer.