Changeset 5577


Ignore:
Timestamp:
Jul 24, 2017, 1:01:18 PM (4 weeks ago)
Author:
lindanl
Message:

minor fixes.

File:
1 edited

Legend:

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

    r5576 r5577  
    216216    idb->LinkFunction("wrapped_report_pos", &wrapped_report_pos);
    217217
     218    const unsigned segmentSize = codegen::SegmentSize;
     219    const unsigned bufferSegments = codegen::BufferSegments;
     220
    218221    Function * const main = cast<Function>(m->getOrInsertFunction("Main", voidTy, inputType, sizeTy, nullptr));
    219222    main->setCallingConv(CallingConv::C);
     
    226229
    227230    auto ChStream = pxDriver.addBuffer(make_unique<SourceBuffer>(idb, idb->getStreamSetTy(4)));
    228 
    229231    auto mmapK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(idb, inputType));
    230232    mmapK->setInitialArguments({inputStream, fileSize});
    231 
    232233    pxDriver.makeKernelCall(mmapK, {}, {ChStream});
    233234
    234     auto MatchResults = pxDriver.addBuffer(make_unique<CircularBuffer>(idb, idb->getStreamSetTy(editDistance + 1), 1));
    235 
     235    auto MatchResults = pxDriver.addBuffer(make_unique<CircularBuffer>(idb, idb->getStreamSetTy(editDistance + 1), segmentSize * bufferSegments));
    236236    auto editdk = pxDriver.addKernelInstance(make_unique<PatternKernel>(idb, patterns));
    237 
    238237    pxDriver.makeKernelCall(editdk, {ChStream}, {MatchResults});
    239238
Note: See TracChangeset for help on using the changeset viewer.