Ignore:
Timestamp:
Aug 26, 2016, 9:33:51 AM (3 years ago)
Author:
cameron
Message:

Defer binding of buffers to stream sets until kernel generation

File:
1 edited

Legend:

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

    r5109 r5133  
    1919class p2sKernel : public KernelBuilder {
    2020public:
    21     p2sKernel(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& byteStream) :
     21    p2sKernel(IDISA::IDISA_Builder * iBuilder) :
    2222    KernelBuilder(iBuilder, "p2s",
    23                   {StreamSetBinding{basisBits, "basisBits"}},
    24                   {StreamSetBinding{byteStream, "byteStream"}},
     23                  {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
     24                  {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
    2525                  {}, {}, {}) {}
    2626   
     
    3232class p2sKernel_withCompressedOutput : public KernelBuilder {
    3333public:
    34     p2sKernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& deletionCounts, parabix::StreamSetBuffer& byteStream) :
     34    p2sKernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
    3535    KernelBuilder(iBuilder, "p2s_compress",
    36                   {StreamSetBinding{basisBits, "basisBits"}, StreamSetBinding{deletionCounts, "deletionCounts"}},
    37                   {StreamSetBinding{byteStream, "byteStream"}},
     36                  {StreamSetBinding{StreamSetType(8, 1), "basisBits"}, StreamSetBinding{StreamSetType(1, 1), "deletionCounts"}},
     37                  {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
    3838                  {}, {}, {}) {}
    3939   
     
    4646class p2s_16Kernel : public KernelBuilder {
    4747public:
    48     p2s_16Kernel(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& i16Stream) :
     48    p2s_16Kernel(IDISA::IDISA_Builder * iBuilder) :
    4949    KernelBuilder(iBuilder, "p2s_16",
    50                   {StreamSetBinding{basisBits, "basisBits"}},
    51                   {StreamSetBinding{i16Stream, "i16Stream"}},
     50                  {StreamSetBinding{StreamSetType(16, 1), "basisBits"}},
     51                  {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
    5252                  {}, {}, {}) {}
    5353   
     
    6060class p2s_16Kernel_withCompressedOutput : public KernelBuilder {
    6161public:
    62     p2s_16Kernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& deletionCounts, parabix::StreamSetBuffer& i16Stream) :
     62    p2s_16Kernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
    6363    KernelBuilder(iBuilder, "p2s_16_compress",
    64                   {StreamSetBinding{basisBits, "basisBits"}, StreamSetBinding{deletionCounts, "deletionCounts"}},
    65                   {StreamSetBinding{i16Stream, "i16Stream"}},
     64                  {StreamSetBinding{StreamSetType(16, 1), "basisBits"}, StreamSetBinding{StreamSetType(1, 1), "deletionCounts"}},
     65                  {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
    6666                  {},
    6767                  {},
Note: See TracChangeset for help on using the changeset viewer.