format
This commit is contained in:
parent
f62e353f4a
commit
aa75fdae47
6 changed files with 39 additions and 34 deletions
6
src/Manager.cpp
Executable file → Normal file
6
src/Manager.cpp
Executable file → Normal file
|
|
@ -62,7 +62,8 @@ Manager::~Manager()
|
|||
SPDLOG_DEBUG("Kompute Manager explicitly freeing tensors");
|
||||
for (const std::shared_ptr<Tensor>& tensor : this->mManagedTensors) {
|
||||
if (!tensor->isInit()) {
|
||||
SPDLOG_ERROR("Kompute Manager attempted to free managed tensor but not tensor is not initialised");
|
||||
SPDLOG_ERROR("Kompute Manager attempted to free managed tensor "
|
||||
"but not tensor is not initialised");
|
||||
}
|
||||
tensor->freeMemoryDestroyGPUResources();
|
||||
}
|
||||
|
|
@ -142,8 +143,7 @@ Manager::createManagedSequence(std::string sequenceName, uint32_t queueIndex)
|
|||
|
||||
if (sequenceName.empty()) {
|
||||
this->mCurrentSequenceIndex++;
|
||||
this->mManagedSequences.insert(
|
||||
{ KP_DEFAULT_SESSION, sq });
|
||||
this->mManagedSequences.insert({ KP_DEFAULT_SESSION, sq });
|
||||
} else {
|
||||
// TODO: Check if sequence doesn't already exist
|
||||
this->mManagedSequences.insert({ sequenceName, sq });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue