Ignore:
Timestamp:
Mar 24, 2018, 10:30:59 AM (17 months ago)
Author:
cameron
Message:

Avoid segfault issue with -ShowASM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep/grep_engine.cpp

    r5927 r5932  
    8080void grepBuffer(re::RE * pattern, const char * search_buffer, size_t bufferLength, MatchAccumulator * accum) {
    8181    const unsigned segmentSize = codegen::BufferSegments * codegen::SegmentSize * codegen::ThreadNum;
     82    auto segParallelModeSave = codegen::SegmentPipelineParallel;
     83    codegen::SegmentPipelineParallel = false;
    8284   
    8385    pattern = resolveCaseInsensitiveMode(pattern, false);
     
    141143    auto f = reinterpret_cast<GrepFunctionType>(pxDriver.getMain());
    142144    f(search_buffer, bufferLength);
     145    codegen::SegmentPipelineParallel = segParallelModeSave;
    143146}
    144147
Note: See TracChangeset for help on using the changeset viewer.