Ignore:
Timestamp:
May 19, 2017, 12:03:57 PM (2 years ago)
Author:
cameron
Message:

Deprecating SingleBlockBuffer?

File:
1 edited

Legend:

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

    r5440 r5457  
    142142    auto & iBuilder = pxDriver.getBuilder();
    143143    Module * m = iBuilder->getModule();
    144    
     144    const unsigned segmentSize = codegen::SegmentSize;
     145    const unsigned bufferSegments = codegen::ThreadNum+1;
     146
     147   
    145148    Type * const int32Ty = iBuilder->getInt32Ty();
    146149    Type * const sizeTy = iBuilder->getSizeTy();
     
    163166    StreamSetBuffer * const ByteStream = pxDriver.addBuffer(make_unique<SourceBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 8)));
    164167
    165     StreamSetBuffer * const BasisBits = pxDriver.addBuffer(make_unique<SingleBlockBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1)));
     168    StreamSetBuffer * const BasisBits = pxDriver.addBuffer(make_unique<CircularBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), segmentSize * bufferSegments));
    166169
    167170    Kernel * mmapK = pxDriver.addKernelInstance(make_unique<MMapSourceKernel>(iBuilder));
Note: See TracChangeset for help on using the changeset viewer.