Updated to enable for opmult to work

This commit is contained in:
Alejandro Saucedo 2021-02-26 18:58:19 +00:00
parent fb617d1722
commit 3304767f2c
11 changed files with 49 additions and 39 deletions

View file

@ -78,8 +78,7 @@ Sequence::eval()
std::shared_ptr<Sequence>
Sequence::eval(std::shared_ptr<OpBase> op) {
this->clear();
this->record(op);
this->eval();
return this->record(op)->eval();
}
std::shared_ptr<Sequence>
@ -88,6 +87,7 @@ Sequence::evalAsync()
if (this->isRecording()) {
this->end();
}
if (this->mIsRunning) {
throw std::runtime_error("Kompute Sequence evalAsync called when an eval async was "
"called without successful wait");