Ignore:
Timestamp:
Oct 25, 2017, 4:57:58 PM (20 months ago)
Author:
nmedfort
Message:

First stage of MultiBlockKernel? and pipeline restructuring

File:
1 edited

Legend:

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

    r5705 r5706  
    137137: PabloKernel(kb, "RequiredStreams_UTF8",               
    138138              {Binding{kb->getStreamSetTy(8), "basis"}},
    139               {Binding{kb->getStreamSetTy(4), "required"}},
     139              {Binding{kb->getStreamSetTy(4), "required", FixedRate(), Add1()}},
    140140              {},
    141141              {}) {
     
    171171: PabloKernel(kb, "RequiredStreams_UTF16",               
    172172              {Binding{kb->getStreamSetTy(16), "basis"}},
    173               {Binding{kb->getStreamSetTy(4), "required"}},
     173              {Binding{kb->getStreamSetTy(4), "required", FixedRate(), Add1()}},
    174174              {},
    175175              {}) {
     
    184184               Binding{iBuilder->getStreamSetTy(1, 1), "linebreak"},
    185185               Binding{iBuilder->getStreamSetTy(4, 1), "required"}},
    186 
    187               {Binding{iBuilder->getStreamSetTy(1, 1), "matches", Add1()}}) {
     186              {Binding{iBuilder->getStreamSetTy(1, 1), "matches", FixedRate(), Add1()}}) {
    188187
    189188}
     
    227226
    228227InvertMatchesKernel::InvertMatchesKernel(const std::unique_ptr<kernel::KernelBuilder> & builder)
    229 : BlockOrientedKernel("Invert", {Binding{builder->getStreamSetTy(1, 1), "matchedLines"}, Binding{builder->getStreamSetTy(1, 1), "lineBreaks"}}, {Binding{builder->getStreamSetTy(1, 1), "nonMatches"}}, {}, {}, {}) {
     228: BlockOrientedKernel("Invert",
     229    // Inputs
     230    {Binding{builder->getStreamSetTy(1, 1), "matchedLines"}, Binding{builder->getStreamSetTy(1, 1), "lineBreaks"}},
     231    // Outputs
     232    {Binding{builder->getStreamSetTy(1, 1), "nonMatches"}},
     233    // Input/Output Scalars and internal state
     234    {}, {}, {}) {
    230235    setNoTerminateAttribute(true);   
    231236}
     
    246251              {Binding{iBuilder->getSizeTy(), "countResult"}}) {
    247252}
    248 
Note: See TracChangeset for help on using the changeset viewer.