Ignore:
Timestamp:
Jan 12, 2017, 9:09:58 AM (3 years ago)
Author:
cameron
Message:

Fixes for mmap kernel for blocksPerSegment, codeUnitWidth, new doSegment interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/mmap_kernel.h

    r5248 r5255  
    2020class MMapSourceKernel : public KernelBuilder {
    2121public:
    22     MMapSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned segmentSize, unsigned codeUnitWidth = 8) :
     22    MMapSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8) :
    2323    KernelBuilder(iBuilder, "mmap_source",
    2424                  {}, {Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "sourceBuffer"}},
    2525                  {Binding{iBuilder->getSizeTy(), "fileSize"}}, {}, {}),
    26     mSegmentSize(segmentSize),
     26    mSegmentBlocks(blocksPerSegment),
    2727    mCodeUnitWidth(codeUnitWidth) {}
    2828   
    2929private:
    30     unsigned mSegmentSize;
     30    unsigned mSegmentBlocks;
    3131    unsigned mCodeUnitWidth;
    3232 
Note: See TracChangeset for help on using the changeset viewer.