Ignore:
Timestamp:
Jun 4, 2018, 3:20:10 AM (13 months ago)
Author:
xwa163
Message:

Init checkin for LZ4ParallelByteStreamAioKernel and related pipeline

File:
1 edited

Legend:

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

    r6061 r6064  
    2121                                   {
    2222                                           Binding{b->getStreamSetTy(1, 8), "byteStream", BoundedRate(0, 1)},
    23                                            Binding{b->getStreamSetTy(1, 1), "extender", RateEqualTo("byteStream")},
     23//                                           Binding{b->getStreamSetTy(1, 1), "extender", RateEqualTo("byteStream")},
    2424
    2525                                           // block data
     
    5959        // While in SegmentOrigentedKernel, availableItemCount == producedItemCount from previous kernel
    6060        Value * totalNumber = b->getAvailableItemCount("blockEnd");
    61         Value * totalExtender = b->getAvailableItemCount("extender");
     61//        Value * totalExtender = b->getAvailableItemCount("extender");
    6262
    6363        Value * blockEnd = this->generateLoadInt64NumberInput(b, "blockEnd", blockDataIndex);
     
    6868        Value * blockStart = this->generateLoadInt64NumberInput(b, "blockStart", blockDataIndex);
    6969        BasicBlock * processBlock = b->CreateBasicBlock("processBlock");
    70         b->CreateCondBr(b->CreateICmpULE(blockEnd, totalExtender), processBlock, exitBlock);
     70//        b->CreateCondBr(b->CreateICmpULE(blockEnd, totalExtender), processBlock, exitBlock);
     71        b->CreateBr(processBlock);
    7172
    7273        b->SetInsertPoint(processBlock);
     
    266267    llvm::Value *LZ4ByteStreamAioKernel::processBlockBoundary(const std::unique_ptr<KernelBuilder> &b, llvm::Value *beginTokenPos,
    267268                                                    llvm::Value *lz4BlockEnd) {
    268 // Constant
     269        // Constant
    269270        ConstantInt* SIZE_0 = b->getSize(0);
    270271        ConstantInt* SIZE_1 = b->getSize(1);
     
    561562        b->SetInsertPoint(literalCopyBody);
    562563        // Always copy fw bits to improve performance
    563         // TODO sometime it will crash because of overflow copy in the end of the buffer, need to add 4 bytes of
    564         //      extra buffer in order to make sure it does not crash.
    565564        b->CreateStore(b->CreateLoad(phiInputPtr), phiOutputPtr);
    566565
Note: See TracChangeset for help on using the changeset viewer.