Ignore:
Timestamp:
Sep 5, 2016, 9:13:11 AM (3 years ago)
Author:
cameron
Message:

ExternalFileBuffer?, SingleBlockBuffer? fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r5137 r5142  
    139139    Type * mBitBlockType = iBuilder->getBitBlockType();
    140140   
    141     ExternalUnboundedBuffer ByteStream(iBuilder, StreamSetType(1, i8));
     141    ExternalFileBuffer ByteStream(iBuilder, StreamSetType(1, i8));
    142142    SingleBlockBuffer BasisBits(iBuilder, StreamSetType(8, i1));
    143    
     143    //CircularBuffer BasisBits(iBuilder, StreamSetType(8, i1), codegen::SegmentSize * codegen::BufferSegments);
     144
    144145    s2pKernel  s2pk(iBuilder);
    145146    std::unique_ptr<Module> s2pM = s2pk.createKernelModule({&ByteStream}, {&BasisBits});
     
    172173    iBuilder->SetInsertPoint(BasicBlock::Create(mMod->getContext(), "entry", main,0));
    173174
    174     ByteStream.setStreamSetBuffer(inputStream);
     175    ByteStream.setStreamSetBuffer(inputStream, fileSize);
    175176    BasisBits.allocateBuffer();
    176177   
Note: See TracChangeset for help on using the changeset viewer.