SWDEV-567475 - Fix failures in graph tests due to GraphExec destroy h… (#1917)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
75de915725
Коммит
7313c3752a
@@ -591,6 +591,9 @@ class Graph {
|
||||
}
|
||||
graphUserObj_.clear();
|
||||
memAllocNodePtrs_.clear();
|
||||
if (instantiateDeviceId_ != -1) {
|
||||
static_cast<amd::ReferenceCountedObject*>(g_devices[instantiateDeviceId_])->release();
|
||||
}
|
||||
}
|
||||
|
||||
void AddManualNodeDuringCapture(GraphNode* node) { capturedNodes_.insert(node); }
|
||||
@@ -779,6 +782,7 @@ class Graph {
|
||||
//!< Used to track which devices are accessed by each parallel stream
|
||||
//!< during multi-device graph execution scheduling.
|
||||
std::unordered_map<int, std::set<int>> streams_dev_ids_;
|
||||
int instantiateDeviceId_ = -1;
|
||||
|
||||
private:
|
||||
friend class GraphExec;
|
||||
@@ -836,9 +840,6 @@ class GraphExec : public amd::ReferenceCountedObject, public Graph {
|
||||
kernArgManager_->release();
|
||||
}
|
||||
}
|
||||
if (instantiateDeviceId_ != -1) {
|
||||
static_cast<ReferenceCountedObject*>(g_devices[instantiateDeviceId_])->release();
|
||||
}
|
||||
|
||||
packetBatches_.clear();
|
||||
nodeCaptureStatus_.clear();
|
||||
@@ -899,7 +900,6 @@ class GraphExec : public amd::ReferenceCountedObject, public Graph {
|
||||
std::unordered_map<int, std::vector<hip::Stream*>> parallel_streams_;
|
||||
uint64_t flags_ = 0;
|
||||
GraphKernelArgManager* kernArgManager_ = nullptr; //!< Kernel Arg manager for graph.
|
||||
int instantiateDeviceId_ = -1;
|
||||
bool hasHiddenHeap_ = false; //!< Hidden heap indicator for Kernel node
|
||||
bool repeatLaunch_ = false;
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user