Ignore:
Timestamp:
Jul 20, 2016, 1:15:01 PM (3 years ago)
Author:
cameron
Message:

Kernel system restructuring progress

File:
1 edited

Legend:

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

    r5079 r5102  
    2626class p2sKernel : public KernelBuilder {
    2727public:
    28     p2sKernel(IDISA::IDISA_Builder * iBuilder) :
     28    p2sKernel(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& byteStream) :
    2929    KernelBuilder(iBuilder, "p2s",
    30                   {StreamSetBinding{StreamSetType(8, 1), "basisBits"}},
    31                   {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
     30                  {StreamSetBinding{basisBits, "basisBits"}},
     31                  {StreamSetBinding{byteStream, "byteStream"}},
    3232                  {}, {}, {}) {}
    3333   
     
    3939class p2sKernel_withCompressedOutput : public KernelBuilder {
    4040public:
    41     p2sKernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
     41    p2sKernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& deletionCounts, parabix::StreamSetBuffer& byteStream) :
    4242    KernelBuilder(iBuilder, "p2s_compress",
    43                   {StreamSetBinding{StreamSetType(8, 1), "basisBits"}, StreamSetBinding{StreamSetType(1, 1), "deletionCounts"}},
    44                   {StreamSetBinding{StreamSetType(1, 8), "byteStream"}},
     43                  {StreamSetBinding{basisBits, "basisBits"}, StreamSetBinding{deletionCounts, "deletionCounts"}},
     44                  {StreamSetBinding{byteStream, "byteStream"}},
    4545                  {}, {}, {}) {}
    4646   
     
    5353class p2s_16Kernel : public KernelBuilder {
    5454public:
    55     p2s_16Kernel(IDISA::IDISA_Builder * iBuilder) :
     55    p2s_16Kernel(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& i16Stream) :
    5656    KernelBuilder(iBuilder, "p2s_16",
    57                   {StreamSetBinding{StreamSetType(16, 1), "basisBits"}},
    58                   {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
     57                  {StreamSetBinding{basisBits, "basisBits"}},
     58                  {StreamSetBinding{i16Stream, "i16Stream"}},
    5959                  {}, {}, {}) {}
    6060   
     
    6767class p2s_16Kernel_withCompressedOutput : public KernelBuilder {
    6868public:
    69     p2s_16Kernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder) :
     69    p2s_16Kernel_withCompressedOutput(IDISA::IDISA_Builder * iBuilder, parabix::StreamSetBuffer& basisBits, parabix::StreamSetBuffer& deletionCounts, parabix::StreamSetBuffer& i16Stream) :
    7070    KernelBuilder(iBuilder, "p2s_16_compress",
    71                   {StreamSetBinding{StreamSetType(16, 1), "basisBits"}, StreamSetBinding{StreamSetType(1, 1), "deletionCounts"}},
    72                   {StreamSetBinding{StreamSetType(1, 16), "i16Stream"}},
     71                  {StreamSetBinding{basisBits, "basisBits"}, StreamSetBinding{deletionCounts, "deletionCounts"}},
     72                  {StreamSetBinding{i16Stream, "i16Stream"}},
    7373                  {}, {}, {}) {}
    7474       
Note: See TracChangeset for help on using the changeset viewer.