Moved opmult to use tpp file
This commit is contained in:
parent
7f38c1a519
commit
18fba90ec0
3 changed files with 16 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// Defining OPMULT_H to ensure cpp class doesn't reimport
|
||||
#define OPMULT_H
|
||||
#pragma once
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
|
@ -48,3 +50,7 @@ class OpMult : public OpBase
|
|||
};
|
||||
|
||||
} // End namespace kp
|
||||
|
||||
// Including implemenation for template class
|
||||
#include "OpMult.tpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,13 @@
|
|||
|
||||
#include "Tensor.hpp"
|
||||
|
||||
// Only defining hpp file for syntax validation in editors
|
||||
#ifndef OPMULT_H
|
||||
#include "OpMult.hpp"
|
||||
#endif
|
||||
|
||||
#ifndef OPMULT_CPP
|
||||
#define OPMULT_CPP
|
||||
|
||||
namespace kp {
|
||||
|
||||
|
|
@ -143,3 +149,6 @@ OpMult<tX, tY, tZ>::postSubmit()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // #ifndef OPMULT_CPP
|
||||
|
||||
|
|
@ -646,7 +646,7 @@ main()
|
|||
spdlog::info("Tensor output: {}", tensorOutput->data());
|
||||
|
||||
spdlog::info("Calling op mult");
|
||||
mgr.evalOp<kp::OpMult>({ tensorLHS, tensorRHS, tensorOutput });
|
||||
mgr.evalOp<kp::OpMult<>>({ tensorLHS, tensorRHS, tensorOutput });
|
||||
|
||||
spdlog::info("OpMult call success");
|
||||
spdlog::info("Tensor output: {}", tensorOutput->data());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue