Ignore:
Timestamp:
Feb 4, 2017, 9:43:22 PM (2 years ago)
Author:
cameron
Message:

Circular copy-back buffers: initial check-in

File:
1 edited

Legend:

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

    r5299 r5301  
    255255
    256256    const unsigned segmentSize = codegen::SegmentSize;
    257     const unsigned bufferSegments = codegen::ThreadNum;
     257    const unsigned bufferSegments = codegen::ThreadNum+1;
    258258   
    259259    assert (iBuilder);
     
    290290    // Different choices for the output buffer depending on chosen option.
    291291    ExternalFileBuffer U16external(iBuilder, iBuilder->getStreamSetTy(1, 16));
    292     LinearCopybackBuffer U16out(iBuilder, iBuilder->getStreamSetTy(1, 16), (segmentSize + 1) * bufferSegments);
     292    CircularCopybackBuffer U16out(iBuilder, iBuilder->getStreamSetTy(1, 16), segmentSize * bufferSegments, 1 /*overflow block*/);
    293293
    294294    MMapSourceKernel mmapK(iBuilder, segmentSize);
Note: See TracChangeset for help on using the changeset viewer.