Skip to content

Commit

Permalink
Fix likwid-sysfeatures -p
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatix committed Nov 15, 2024
1 parent 9777199 commit f70a5dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/applications/likwid-sysfeatures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ local ft_list = likwid.sysFeatures_list()
-- print available devices
if printDevices then
device_types = {}
device_types[likwid.hwthread] = "HWThread"
device_types[likwid.core] = "Core"
device_types[likwid.numa] = "NUMA"
device_types[likwid.die] = "Die"
device_types[likwid.socket] = "Socket"
device_types[likwid.node] = "Node"
device_types[likwid.hwthread] = "HWThread (T)"
device_types[likwid.core] = "Core (C)"
device_types[likwid.numa] = "NUMA (M)"
device_types[likwid.die] = "Die (D)"
device_types[likwid.socket] = "Socket (S)"
device_types[likwid.node] = "Node (N)"
if likwid.nvSupported() then
device_types[likwid.nvidia_gpu] = "Nvidia GPU"
device_types[likwid.nvidia_gpu] = "Nvidia GPU (GN)"
end
if likwid.rocmSupported() then
device_types[likwid.amd_gpu] = "AMD GPU"
device_types[likwid.amd_gpu] = "AMD GPU (GA)"
end
for devtype, name in pairs(device_types) do
print(string.format("%s:", name))
Expand Down
4 changes: 0 additions & 4 deletions src/likwid_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,6 @@ static bool device_in_cpuset(LikwidDeviceType type, size_t id)

static int likwid_device_get_list(LikwidDeviceType type, char ***id_list, size_t *id_list_count, bool cpuset_only)
{
/* There seems to be a bug in this function, fix in a later commit. */
ERROR_PRINT(not implemented);
return -EPERM;

if (type <= DEVICE_TYPE_INVALID || type >= MAX_DEVICE_TYPE || !id_list)
return -EINVAL;

Expand Down

0 comments on commit f70a5dc

Please sign in to comment.