Changeset 6088


Ignore:
Timestamp:
Jun 14, 2018, 6:37:52 AM (6 days ago)
Author:
cameron
Message:

Allow a name suffix for FieldDepositKernel? to distinguish multiple kernel instances

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r6086 r6088  
    263263}
    264264
    265 FieldDepositKernel::FieldDepositKernel(const std::unique_ptr<kernel::KernelBuilder> & kb, const unsigned fieldWidth, const unsigned streamCount)
    266 : MultiBlockKernel("FieldDeposit" + std::to_string(fieldWidth) + "_" + std::to_string(streamCount),
     265FieldDepositKernel::FieldDepositKernel(const std::unique_ptr<kernel::KernelBuilder> & kb, const unsigned fieldWidth, const unsigned streamCount, std::string suffix)
     266: MultiBlockKernel("FieldDeposit" + std::to_string(fieldWidth) + "_" + std::to_string(streamCount) + suffix,
    267267                   {Binding{kb->getStreamSetTy(1), "depositMask"}, Binding{kb->getStreamSetTy(streamCount), "inputStreamSet"}},
    268268                   {Binding{kb->getStreamSetTy(streamCount), "outputStreamSet"}},
     
    393393        depositK = mDriver.addKernelInstance<PDEPFieldDepositKernel>(b, mFieldWidth, N, std::to_string(mSelectedStreamBase));
    394394    } else {
    395         depositK = mDriver.addKernelInstance<FieldDepositKernel>(b, mFieldWidth, N);
     395        depositK = mDriver.addKernelInstance<FieldDepositKernel>(b, mFieldWidth, N, std::to_string(mSelectedStreamBase));
    396396    }
    397397    mDriver.makeKernelCall(depositK, {depositMask, expandedStreams}, {outputs});
  • icGREP/icgrep-devel/icgrep/kernels/pdep_kernel.h

    r6071 r6088  
    6666class FieldDepositKernel final : public MultiBlockKernel {
    6767public:
    68     FieldDepositKernel(const std::unique_ptr<kernel::KernelBuilder> & b, unsigned fw, unsigned streamCount);
     68    FieldDepositKernel(const std::unique_ptr<kernel::KernelBuilder> & b, unsigned fw, unsigned streamCount, std::string suffix);
    6969    bool isCachable() const override { return true; }
    7070    bool hasSignature() const override { return false; }
Note: See TracChangeset for help on using the changeset viewer.