Skip to content

Commit

Permalink
Fix for builds with external hwloc
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Jun 18, 2021
1 parent 98f98c6 commit 49ea772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ LIBS += -l$(LUA_LIB_NAME)
endif
ifeq ($(USE_INTERNAL_HWLOC),false)
LIBS += -l$(HWLOC_LIB_NAME)
SHARED_CFLAGS += -L$(HWLOC_LIB_DIR)
endif

#CONFIGURE BUILD SYSTEM
Expand Down
6 changes: 3 additions & 3 deletions src/topology_hwloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ hwloc_init_nodeTopology(cpu_set_t cpuSet)
socket_type = HWLOC_OBJ_NODE;
}

maxNumSockets = likwid_hwloc_get_nbobjs_by_type(hwloc_topology, socket_type);
maxNumDies = likwid_hwloc_get_nbobjs_by_type(hwloc_topology, HWLOC_OBJ_DIE);
obj = likwid_hwloc_get_obj_by_type(hwloc_topology, socket_type, 0);
maxNumSockets = LIKWID_HWLOC_NAME(get_nbobjs_by_type)(hwloc_topology, socket_type);
maxNumDies = LIKWID_HWLOC_NAME(get_nbobjs_by_type)(hwloc_topology, HWLOC_OBJ_DIE);
obj = LIKWID_HWLOC_NAME(get_obj_by_type)(hwloc_topology, socket_type, 0);

if (obj)
{
Expand Down

0 comments on commit 49ea772

Please sign in to comment.