Ignore:
Timestamp:
Mar 20, 2018, 4:05:54 PM (13 months ago)
Author:
xwa163
Message:
  1. Initial checkin for new approach for lz4 index decoder that always use 4MB buffer
  2. Add test case for new approach (for now test cases will fail when test file is larger than 4MB)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r5883 r5921  
    736736            }
    737737
     738            if (input.isConstantStrideLengthOne()) {
     739                // TODO workaround here
     740                strideLength = b->getSize(1);
     741            }
     742
    738743            Value * const processed = b->getProcessedItemCount(name);
    739744//            if (input.getRate().isFixed()) {
     
    749754          //  b->CallPrintInt("< " + kernel->getName() + "_" + name + "_unprocessed", unprocessed);
    750755
    751             Value * const hasSufficientData = b->CreateOr(b->CreateICmpUGT(unprocessed, strideLength), isFinal);
     756            Value * const hasSufficientData = input.isConstantStrideLengthOne() ?
     757                                              b->CreateOr(b->CreateICmpUGE(unprocessed, strideLength), isFinal) :
     758                                              b->CreateOr(b->CreateICmpUGT(unprocessed, strideLength), isFinal);
     759//            Value * const hasSufficientData = b->CreateOr(b->CreateICmpUGT(unprocessed, strideLength), isFinal);
     760//            Value * const hasSufficientData = b->CreateOr(b->CreateICmpUGE(unprocessed, strideLength), isFinal);
    752761
    753762          //  b->CallPrintInt("* < " + kernel->getName() + "_" + name + "_sufficientData", hasSufficientData);
Note: See TracChangeset for help on using the changeset viewer.