Ignore:
Timestamp:
Mar 31, 2017, 3:05:41 PM (2 years ago)
Author:
nmedfort
Message:

Replaced stdin input stream with mmap'ed buffer and aligned each read call to the page size.

File:
1 edited

Legend:

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

    r5379 r5386  
    249249
    250250    const parabix::StreamSetBuffer * getInputStreamSetBuffer(const std::string & name) const {
    251         return mStreamSetInputBuffers[getStreamSetIndex(name)];
     251        const auto index = getStreamSetIndex(name);
     252        assert (index < mStreamSetInputBuffers.size());
     253        return mStreamSetInputBuffers[index];
    252254    }
    253255
    254256    const parabix::StreamSetBuffer * getOutputStreamSetBuffer(const std::string & name) const {
    255         return mStreamSetOutputBuffers[getStreamSetIndex(name)];
     257        const auto index = getStreamSetIndex(name);
     258        assert (index < mStreamSetOutputBuffers.size());
     259        return mStreamSetOutputBuffers[index];
    256260    }
    257261
Note: See TracChangeset for help on using the changeset viewer.