Changeset 5580


Ignore:
Timestamp:
Jul 24, 2017, 7:04:10 PM (3 months ago)
Author:
lindanl
Message:

Bug fix for segment size in editd.

File:
1 edited

Legend:

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

    r5579 r5580  
    232232
    233233    auto ChStream = pxDriver.addBuffer(make_unique<SourceBuffer>(idb, idb->getStreamSetTy(4)));
    234     auto mmapK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(idb, inputType));
     234    auto mmapK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(idb, inputType, segmentSize));
    235235    mmapK->setInitialArguments({inputStream, fileSize});
    236236    pxDriver.makeKernelCall(mmapK, {}, {ChStream});
     
    274274
    275275    auto ChStream = pxDriver.addBuffer(make_unique<SourceBuffer>(idb, idb->getStreamSetTy(4)));
    276     auto mmapK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(idb, inputType));
     276    auto mmapK = pxDriver.addKernelInstance(make_unique<MemorySourceKernel>(idb, inputType, segmentSize));
    277277    mmapK->setInitialArguments({inputStream, fileSize});
    278278    pxDriver.makeKernelCall(mmapK, {}, {ChStream});
     
    358358    auto ByteStream = pxDriver.addBuffer(make_unique<SourceBuffer>(iBuilder, iBuilder->getStreamSetTy(1, 8)));
    359359
    360     auto mmapK = pxDriver.addKernelInstance(make_unique<MMapSourceKernel>(iBuilder, 1));
     360    auto mmapK = pxDriver.addKernelInstance(make_unique<MMapSourceKernel>(iBuilder, segmentSize));
    361361    mmapK->setInitialArguments({fileDescriptor});
    362362    pxDriver.makeKernelCall(mmapK, {}, {ByteStream});
Note: See TracChangeset for help on using the changeset viewer.