Fully working end to end flow
This commit is contained in:
parent
68ba2d84d0
commit
88944de156
2 changed files with 8 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ template<uint32_t tX, uint32_t tY, uint32_t tZ>
|
||||||
OpMult<tX, tY, tZ>::~OpMult()
|
OpMult<tX, tY, tZ>::~OpMult()
|
||||||
{
|
{
|
||||||
SPDLOG_DEBUG("Kompute OpMult destructor started");
|
SPDLOG_DEBUG("Kompute OpMult destructor started");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<uint32_t tX, uint32_t tY, uint32_t tZ>
|
template<uint32_t tX, uint32_t tY, uint32_t tZ>
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,17 @@ class OpMult : public OpBase
|
||||||
void postSubmit() override;
|
void postSubmit() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// Always owned resources
|
||||||
|
std::shared_ptr<Tensor> mTensorOutputStaging;
|
||||||
|
|
||||||
|
// Optionally owned resources
|
||||||
std::shared_ptr<Algorithm> mAlgorithm;
|
std::shared_ptr<Algorithm> mAlgorithm;
|
||||||
|
bool mFreeAlgorithm = false;
|
||||||
|
|
||||||
|
// Never owned resources
|
||||||
std::shared_ptr<Tensor> mTensorLHS;
|
std::shared_ptr<Tensor> mTensorLHS;
|
||||||
std::shared_ptr<Tensor> mTensorRHS;
|
std::shared_ptr<Tensor> mTensorRHS;
|
||||||
std::shared_ptr<Tensor> mTensorOutput;
|
std::shared_ptr<Tensor> mTensorOutput;
|
||||||
std::shared_ptr<Tensor> mTensorOutputStaging;
|
|
||||||
|
|
||||||
uint32_t mX;
|
uint32_t mX;
|
||||||
uint32_t mY;
|
uint32_t mY;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue