Ignore:
Timestamp:
Jan 7, 2017, 12:26:09 PM (3 years ago)
Author:
cameron
Message:

Separate processedItemCounts and producedItemCounts for each stream set

File:
1 edited

Legend:

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

    r5246 r5247  
    1616const std::string blockNoScalar = "blockNo";
    1717const std::string logicalSegmentNoScalar = "logicalSegNo";
    18 const std::string processedItemCount = "processedItemCount";
    19 const std::string producedItemCount = "producedItemCount";
     18const std::string processedItemCountSuffix = "_processedItemCount";
     19const std::string producedItemCountSuffix = "_producedItemCount";
    2020const std::string terminationSignal = "terminationSignal";
    2121const std::string structPtrSuffix = "_structPtr";
     
    4242
    4343    Value * getBlockNo(Value * self) const;
    44     virtual Value * getProcessedItemCount(Value * self) const override;
    45     virtual Value * getProducedItemCount(Value * self) const override;
     44    virtual Value * getProcessedItemCount(Value * self, const std::string & ssName) const override;
     45    virtual Value * getProducedItemCount(Value * self, const std::string & ssName) const override;
    4646    virtual void initializeKernelState(Value * self) const;
    4747    Value * getTerminationSignal(Value * self) const override;
     
    155155    void setBlockNo(Value * self, Value * newFieldVal) const;
    156156
    157     virtual void setProcessedItemCount(Value * self, Value * newFieldVal) const;
     157    virtual void setProcessedItemCount(Value * self, const std::string & ssName, Value * newFieldVal) const;
    158158
    159     virtual void setProducedItemCount(Value * self, Value * newFieldVal) const;
     159    virtual void setProducedItemCount(Value * self, const std::string & ssName, Value * newFieldVal) const;
    160160
    161161    void setTerminationSignal(Value * self) const;
Note: See TracChangeset for help on using the changeset viewer.