SWDEV-444670 - Enable teardown class
Force implicit runtime teardown with a global destructor. Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669
이 커밋은 다음에 포함됨:
1 부모
a1e0970d6d
커밋
c95a75a2bf
7 파일이 변경됨
+37
-14
검색과 일치하는 파일 없음
@@ -61,6 +61,7 @@ void init(bool* status) {
|
||||
return;
|
||||
}
|
||||
g_devices.push_back(device);
|
||||
amd::RuntimeTearDown::RegisterObject(device);
|
||||
}
|
||||
|
||||
amd::Context* hContext = new amd::Context(devices, amd::Context::Info());
|
||||
@@ -73,6 +74,7 @@ void init(bool* status) {
|
||||
hContext->release();
|
||||
}
|
||||
host_context = hContext;
|
||||
amd::RuntimeTearDown::RegisterObject(hContext);
|
||||
|
||||
PlatformState::instance().init();
|
||||
*status = true;
|
||||
|
||||
@@ -445,7 +445,7 @@ public:
|
||||
};
|
||||
|
||||
/// HIP Device class
|
||||
class Device {
|
||||
class Device : public amd::ReferenceCountedObject {
|
||||
amd::Monitor lock_{"Device lock", true};
|
||||
amd::Monitor streamSetLock{"Guards device stream set"};
|
||||
std::unordered_set<hip::Stream*> streamSet;
|
||||
|
||||
새 이슈에서 참조
사용자 차단