Skip to content

Commit

Permalink
Use different way to select all HW threads of a socket. Fixes #501
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Oct 31, 2023
1 parent 1390073 commit 2e0f430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/applications/likwid-powermeter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ after = {}
sock_cpulist = {}
if #sockets == 0 then
for i, domain in pairs(affinity["domains"]) do
if domain["tag"]:match("S%d+") then
if domain["tag"]:match("S%d+") and domain["numberOfProcessors"] > 0 then
sid = domain["tag"]:match("S(%d+)")
table.insert(sockets, sid)
end
end
end
for i, sid in pairs(sockets) do
pin = string.format("S%s:0-%d", tostring(sid), cputopo["numCoresPerSocket"]-1)
pin = string.format("S%s", tostring(sid))
_, sock_cpulist[sid] = likwid.cpustr_to_cpulist(pin)
before[sock_cpulist[sid][1]] = {}
after[sock_cpulist[sid][1]] = {}
Expand Down

0 comments on commit 2e0f430

Please sign in to comment.