SWDEV-470698 - fix formatting, add format check workflow (#657)

Tento commit je obsažen v:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
odevzdal GitHub
rodič 5840940caa
revize f7338717ae
1574 změnil soubory, kde provedl 162972 přidání a 199346 odebrání
+4 -5
Zobrazit soubor
@@ -73,7 +73,8 @@ bool Runtime::init() {
return true;
}
if (!Flag::init() || !option::init() || !Device::init()
if (!Flag::init() || !option::init() ||
!Device::init()
// Agent initializes last
|| (!amd::IS_HIP && !Agent::init())) {
ClPrint(LOG_ERROR, LOG_INIT, "Runtime initialization failed");
@@ -113,7 +114,7 @@ RuntimeTearDown::~RuntimeTearDown() {
// Only perform destruction if process matches the initialization,
// to avoid a call with the child process after fork()
if (amd::IS_HIP && amd::Os::getProcessId() == Runtime::pid()) {
for (auto it: external_) {
for (auto it : external_) {
it->release();
}
Runtime::tearDown();
@@ -121,9 +122,7 @@ RuntimeTearDown::~RuntimeTearDown() {
#endif
}
void RuntimeTearDown::RegisterObject(ReferenceCountedObject* obj) {
external_.push_back(obj);
}
void RuntimeTearDown::RegisterObject(ReferenceCountedObject* obj) { external_.push_back(obj); }
class RuntimeTearDown runtime_tear_down;