Ignore:
Timestamp:
Jul 20, 2016, 10:06:34 AM (3 years ago)
Author:
cameron
Message:

Buffer class hierarchy; s2p kernel demonstrates specialization for different buffer strategies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.cpp

    r5096 r5100  
    1111
    1212using namespace llvm;
    13 using namespace kernel;
     13using namespace parabix;
    1414
    1515void KernelInterface::addKernelDeclarations(Module * client) {
     
    155155    }
    156156    for (auto b : inputBuffers) {
    157         init_args.push_back(b->getStreamSetBufferPtr());
    158         init_args.push_back(iBuilder->getInt64(b->getSegmentSize() - 1));
     157        init_args.push_back(b->getStreamSetBasePtr());
     158        init_args.push_back(iBuilder->getInt64(b->getBufferSize() - 1));
    159159    }
    160160    for (auto b : outputBuffers) {
    161         init_args.push_back(b->getStreamSetBufferPtr());
    162         init_args.push_back(iBuilder->getInt64(b->getSegmentSize() - 1));
     161        init_args.push_back(b->getStreamSetBasePtr());
     162        init_args.push_back(iBuilder->getInt64(b->getBufferSize() - 1));
    163163    }
    164164    std::string initFnName = mKernelName + init_suffix;
Note: See TracChangeset for help on using the changeset viewer.