Added functionality for named sequences to be created
This commit is contained in:
parent
c8db55aa1b
commit
b91c392f5e
15 changed files with 299 additions and 173 deletions
|
|
@ -22,6 +22,9 @@ class Sequence
|
|||
uint32_t queueIndex);
|
||||
~Sequence();
|
||||
|
||||
// Initialiser
|
||||
void init();
|
||||
|
||||
// Record command functions
|
||||
void begin();
|
||||
void end();
|
||||
|
|
@ -37,15 +40,15 @@ class Sequence
|
|||
SPDLOG_DEBUG("Kompute Sequence record function started");
|
||||
|
||||
SPDLOG_DEBUG("Kompute Sequence creating OpBase derived class instance");
|
||||
T* op =
|
||||
new T(this->mPhysicalDevice, this->mDevice, this->mCommandBuffer);
|
||||
T* op = new T(
|
||||
this->mPhysicalDevice, this->mDevice, this->mCommandBuffer, tensors);
|
||||
OpBase* baseOp = dynamic_cast<OpBase*>(op);
|
||||
|
||||
std::unique_ptr<OpBase> baseOpPtr{ baseOp };
|
||||
|
||||
SPDLOG_DEBUG(
|
||||
"Kompute Sequence running init on OpBase derived class instance");
|
||||
baseOpPtr->init(tensors);
|
||||
baseOpPtr->init();
|
||||
|
||||
SPDLOG_DEBUG(
|
||||
"Kompute Sequence running record on OpBase derived class instance");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue