Ignore:
Timestamp:
Feb 4, 2017, 9:43:22 PM (3 years ago)
Author:
cameron
Message:

Circular copy-back buffers: initial check-in

File:
1 edited

Legend:

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

    r5299 r5301  
    8787    unsigned blockSize = iBuilder->getBitBlockWidth();
    8888    for (unsigned i = 0; i < mStreamSetInputs.size(); i++) {
    89         if ((mStreamSetInputBuffers[i]->getBufferSize() > 0) && (mStreamSetInputBuffers[i]->getBufferSize() < codegen::SegmentSize + (blockSize + mLookAheadPositions - 1)/blockSize)) {
     89        if ((mStreamSetInputBuffers[i]->getBufferBlocks() > 0) && (mStreamSetInputBuffers[i]->getBufferBlocks() < codegen::SegmentSize + (blockSize + mLookAheadPositions - 1)/blockSize)) {
    9090            llvm::report_fatal_error("Kernel preparation: Buffer size too small " + mStreamSetInputs[i].name);
    9191        }
Note: See TracChangeset for help on using the changeset viewer.