Ignore:
Timestamp:
Feb 3, 2018, 7:44:18 PM (17 months ago)
Author:
cameron
Message:

Data race; disable segment-pipeline-parallel during recursive greps

File:
1 edited

Legend:

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

    r5861 r5862  
    100100    pxDriver.LinkFunction(*scanMatchK, "accumulate_match_wrapper", &accumulate_match_wrapper);
    101101    pxDriver.LinkFunction(*scanMatchK, "finalize_match_wrapper", &finalize_match_wrapper);
     102   
     103    bool saveSegmentParallel = codegen::SegmentPipelineParallel;
     104    codegen::SegmentPipelineParallel = false;
    102105    pxDriver.generatePipelineIR();
    103106    pxDriver.deallocateBuffers();
     
    108111    auto f = reinterpret_cast<GrepFunctionType>(pxDriver.getMain());
    109112    f(search_buffer, bufferLength);
     113    codegen::SegmentPipelineParallel = saveSegmentParallel;
    110114}
    111115}
Note: See TracChangeset for help on using the changeset viewer.