Ignore:
Timestamp:
Feb 6, 2018, 4:57:35 PM (15 months ago)
Author:
nmedfort
Message:

More work on the pipeline I/O rate handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/grep_pipeline.cpp

    r5862 r5865  
    3838
    3939void grepBuffer(re::RE * pattern, const char * search_buffer, size_t bufferLength, MatchAccumulator * accum) {
    40     const unsigned segmentSize = 8;
     40    const unsigned segmentSize = codegen::BufferSegments * codegen::SegmentSize * codegen::ThreadNum;
    4141
    4242    pattern = resolveCaseInsensitiveMode(pattern, false);
     
    101101    pxDriver.LinkFunction(*scanMatchK, "finalize_match_wrapper", &finalize_match_wrapper);
    102102   
    103     bool saveSegmentParallel = codegen::SegmentPipelineParallel;
    104     codegen::SegmentPipelineParallel = false;
    105103    pxDriver.generatePipelineIR();
    106104    pxDriver.deallocateBuffers();
     
    111109    auto f = reinterpret_cast<GrepFunctionType>(pxDriver.getMain());
    112110    f(search_buffer, bufferLength);
    113     codegen::SegmentPipelineParallel = saveSegmentParallel;
    114111}
    115112}
Note: See TracChangeset for help on using the changeset viewer.