Ignore:
Timestamp:
Mar 27, 2017, 9:20:48 PM (2 years ago)
Author:
cameron
Message:

Processing rates can be defined with respect to named stream sets.

File:
1 edited

Legend:

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

    r5370 r5375  
    2222using namespace llvm;
    2323
    24 ProcessingRate FixedRatio(unsigned strmItemsPer, unsigned perPrincipalInputItems) {
    25     return ProcessingRate(ProcessingRate::ProcessingRateKind::Fixed, strmItemsPer, perPrincipalInputItems);
     24ProcessingRate FixedRatio(unsigned strmItemsPer, unsigned perPrincipalInputItems, std::string referenceStreamSet) {
     25    return ProcessingRate(ProcessingRate::ProcessingRateKind::Fixed, strmItemsPer, perPrincipalInputItems, referenceStreamSet);
    2626}
    2727
    28 ProcessingRate MaxRatio(unsigned strmItemsPer, unsigned perPrincipalInputItems) {
    29     return ProcessingRate(ProcessingRate::ProcessingRateKind::Max, strmItemsPer, perPrincipalInputItems);
     28ProcessingRate MaxRatio(unsigned strmItemsPer, unsigned perPrincipalInputItems, std::string referenceStreamSet) {
     29    return ProcessingRate(ProcessingRate::ProcessingRateKind::Max, strmItemsPer, perPrincipalInputItems, referenceStreamSet);
    3030}
    3131
    32 ProcessingRate RoundUpToMultiple(unsigned itemMultiple) {
    33     return ProcessingRate(ProcessingRate::ProcessingRateKind::RoundUp, itemMultiple, itemMultiple);
     32ProcessingRate RoundUpToMultiple(unsigned itemMultiple, std::string referenceStreamSet) {
     33    return ProcessingRate(ProcessingRate::ProcessingRateKind::RoundUp, itemMultiple, itemMultiple, referenceStreamSet);
    3434}
    3535
    36 ProcessingRate Add1() {
    37     return ProcessingRate(ProcessingRate::ProcessingRateKind::Add1, 0, 0);
     36ProcessingRate Add1(std::string referenceStreamSet) {
     37    return ProcessingRate(ProcessingRate::ProcessingRateKind::Add1, 0, 0, referenceStreamSet);
    3838}
    3939
    4040ProcessingRate UnknownRate() {
    41     return ProcessingRate(ProcessingRate::ProcessingRateKind::Unknown, 0, 0);
     41    return ProcessingRate(ProcessingRate::ProcessingRateKind::Unknown, 0, 0, "");
    4242}
    4343
Note: See TracChangeset for help on using the changeset viewer.