Ignore:
Timestamp:
Jan 24, 2017, 9:54:32 AM (2 years ago)
Author:
cameron
Message:

u8u16 working with -mmap-buffering and segment pipeline parallelism

File:
1 edited

Legend:

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

    r5267 r5275  
    251251
    252252    const unsigned segmentSize = codegen::SegmentSize;
    253     const unsigned bufferSegments = codegen::BufferSegments;
     253    const unsigned bufferSegments = codegen::ThreadNum;
    254254   
    255255    assert (iBuilder);
     
    286286    // Different choices for the output buffer depending on chosen option.
    287287    ExternalFileBuffer U16external(iBuilder, iBuilder->getStreamSetTy(1, 16));
    288     LinearCopybackBuffer U16out(iBuilder, iBuilder->getStreamSetTy(16, 16), segmentSize * bufferSegments + 2);
    289 
    290     MMapSourceKernel mmapK(iBuilder, segmentSize * bufferSegments);
     288    LinearCopybackBuffer U16out(iBuilder, iBuilder->getStreamSetTy(16, 16), (segmentSize + 1) * bufferSegments);
     289
     290    MMapSourceKernel mmapK(iBuilder, segmentSize);
    291291    mmapK.generateKernel({}, {&ByteStream});
    292292    mmapK.setInitialArguments({fileSize});
Note: See TracChangeset for help on using the changeset viewer.