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/s2p_kernel.h

    r5074 r5100  
    2424class s2pKernel : public KernelBuilder {
    2525public:
    26     s2pKernel(IDISA::IDISA_Builder * iBuilder) :
     26   
     27    s2pKernel(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& byteStream, parabix::StreamSetBuffer& basisBits) :
    2728    KernelBuilder(iBuilder, "s2p",
    28                   {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
    29                   {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
    30                   {}, {}, {}) {}
    31 
     29                  {StreamSetBinding{parabix::StreamSetType(1, parabix::i8), "byteStream"}},
     30                  {StreamSetBinding{parabix::StreamSetType(8, parabix::i1), "basisBits"}},
     31                  {}, {}, {}), mByteStream(byteStream), mBasisBits(basisBits) {}
     32   
     33   
    3234private:
     35    parabix::StreamSetBuffer& mByteStream;
     36    parabix::StreamSetBuffer& mBasisBits;
    3337    void generateDoBlockMethod() override;
    3438    void generateFinalBlockMethod() override;
Note: See TracChangeset for help on using the changeset viewer.