Ignore:
Timestamp:
Feb 18, 2017, 10:07:09 AM (2 years ago)
Author:
cameron
Message:

Refining the ProcessingRate? attribute

File:
1 edited

Legend:

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

    r5327 r5328  
    339339        storeOutputStreamPack("base64stream", iBuilder->getInt32(0), iBuilder->getInt32(i), base64pack);
    340340    }
    341     Value * produced = getProducedItemCount("base64stream");
    342     produced = iBuilder->CreateAdd(produced, iBuilder->getSize(iBuilder->getStride()));
    343     setProducedItemCount("base64stream", produced);
    344341}
    345342
     
    450447    iBuilder->CreateBr(fbExit);
    451448    iBuilder->SetInsertPoint(fbExit);
    452     Value * produced = iBuilder->CreateAdd(getProducedItemCount("base64stream"), iBuilder->CreateAdd(remainingBytes, padBytes));
    453     setProducedItemCount("base64stream", produced);
    454449}
    455450
     
    457452: SegmentOrientedKernel(iBuilder, "expand3_4",
    458453            {Binding{iBuilder->getStreamSetTy(1, 8), "sourceStream"}},
    459             {Binding{iBuilder->getStreamSetTy(1, 8), "expandedStream", new FixedRatio(4,3)}},
     454            {Binding{iBuilder->getStreamSetTy(1, 8), "expandedStream", FixedRatio(4,3)}},
    460455            {}, {}, {}) {
    461456}
     
    471466: BlockOrientedKernel(iBuilder, "base64",
    472467            {Binding{iBuilder->getStreamSetTy(1, 8), "radix64stream"}},
    473             {Binding{iBuilder->getStreamSetTy(1, 8), "base64stream", new ProcessingRate()}},
     468            {Binding{iBuilder->getStreamSetTy(1, 8), "base64stream", RoundUpToMultiple(4)}},
    474469            {}, {}, {}) {
    475470    setDoBlockUpdatesProducedItemCountsAttribute(true);
Note: See TracChangeset for help on using the changeset viewer.