Skip to content

Commit 1294d1c

Browse files
authored
Merge pull request #989 from intel/push-20251201
Push 20251201
2 parents a385d8d + cd85c54 commit 1294d1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cpucounters.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7508,6 +7508,7 @@ void initSocket2Bus(std::vector<std::pair<uint32, uint32> > & socket2bus, uint32
75087508
Mutex::Scope _(socket2busMutex);
75097509
if(!socket2bus.empty()) return;
75107510

7511+
try {
75117512
forAllIntelDevices(
75127513
[&devIdsSize,&DEV_IDS, &socket2bus](const uint32 group, const uint32 bus, const uint32 /* device */, const uint32 /* function */, const uint32 device_id)
75137514
{
@@ -7522,6 +7523,11 @@ void initSocket2Bus(std::vector<std::pair<uint32, uint32> > & socket2bus, uint32
75227523
}
75237524
}
75247525
}, device, function);
7526+
} catch (const std::exception & e)
7527+
{
7528+
std::cerr << "Error in initSocket2Bus: " << e.what() << "\n";
7529+
socket2bus.clear();
7530+
}
75257531
}
75267532

75277533
int getBusFromSocket(const uint32 socket)

0 commit comments

Comments
 (0)