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/wc.cpp

    r5088 r5100  
    3030#include <IDISA/idisa_builder.h>
    3131#include <IDISA/idisa_target.h>
     32#include <kernels/streamset.h>
    3233#include <kernels/interface.h>
    3334#include <kernels/kernel.h>
     
    138139
    139140using namespace kernel;
     141using namespace parabix;
    140142
    141143
     
    143145    Type * mBitBlockType = iBuilder->getBitBlockType();
    144146   
    145     s2pKernel  s2pk(iBuilder);
     147    ExternalUnboundedBuffer ByteStream(iBuilder, StreamSetType(1, i8));
     148    SingleBlockBuffer BasisBits(iBuilder, StreamSetType(8, i1));
     149   
     150    s2pKernel  s2pk(iBuilder, ByteStream, BasisBits);
    146151    std::unique_ptr<Module> s2pM = s2pk.createKernelModule();
    147152    pablo_function_passes(function);
     
    170175   
    171176    iBuilder->SetInsertPoint(BasicBlock::Create(mMod->getContext(), "entry", main,0));
    172     kernel::StreamSetBuffer ByteStream(iBuilder, kernel::StreamSetType(1, 8), 0);
    173     kernel::StreamSetBuffer BasisBits(iBuilder, kernel::StreamSetType(8, 1), codegen::SegmentSize);
    174177
    175178    ByteStream.setStreamSetBuffer(inputStream);
Note: See TracChangeset for help on using the changeset viewer.