Ignore:
Timestamp:
Mar 8, 2018, 4:58:50 PM (12 months ago)
Author:
xwa163
Message:
  1. Fix match copy kernel in large file for new infrastructure
  2. Enable testing for full LZ4 decode pipeline
File:
1 edited

Legend:

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

    r5885 r5895  
    3838
    3939
    40         size_t outputBufferSize = this->getAnyBufferSize(iBuilder, OUTPUT_BIT_STREAM_NAME) / iBuilder->getStride();
     40        size_t outputBufferBlocks = this->getAnyBufferSize(iBuilder, OUTPUT_BIT_STREAM_NAME) / iBuilder->getStride();
    4141        Value *outputRawBeginPtr = iBuilder->CreatePointerCast(
    4242                iBuilder->getRawOutputPointer(OUTPUT_BIT_STREAM_NAME, SIZE_ZERO),
    4343                iBuilder->getBitBlockType()->getPointerTo());
    4444        Value *outputCurrentPtr = iBuilder->getOutputStreamBlockPtr(OUTPUT_BIT_STREAM_NAME, SIZE_ZERO);
    45 //        outputRawBeginPtr->getType()->print(outs());
    46 //        outputCurrentPtr->getType()->print(outs());
    47 
    4845        Value *offset = iBuilder->CreatePtrDiff(outputCurrentPtr, outputRawBeginPtr);
    49         Value *remainSpace = iBuilder->CreateSub(iBuilder->getSize(outputBufferSize), offset);
     46        Value *remainSpace = iBuilder->CreateSub(iBuilder->getSize(outputBufferBlocks), offset);
    5047//        iBuilder->CallPrintInt("remainSpace",
    5148//                               remainSpace); //TODO workaround here, kernel infrastructure should provide the information about how much data we can produced
Note: See TracChangeset for help on using the changeset viewer.