Skip to content

Commit

Permalink
Implement Dave's feedback on styling and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmarshall21 committed Jan 23, 2024
1 parent 406a470 commit 539a40f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ AC_ARG_ENABLE([completion-polling],

AC_ARG_ENABLE([hwloc-enforce-single-socket],
[AC_HELP_STRING([--enable-hwloc-enforce-single-socket],
[Repin process if assigned affinity to cores across multiple sockets (default:disabled)])])
AS_IF([test "$enable_hwloc_enforce_single_socket" = "yes"], [AC_DEFINE([HWLOC_ENFORCE_SINGLE_SOCKET], [1], [Re-assign CPU affinity on processes with affinity to cores on multiple sockets])])
[Repin process to ensure it has affinity to cores within a single socket (default:disabled)])])
AS_IF([test "$enable_hwloc_enforce_single_socket" = "yes"], [AC_DEFINE([HWLOC_ENFORCE_SINGLE_SOCKET], [1], [Repin process to ensure it has affinity to cores within a single socket])])

AC_ARG_ENABLE([hwloc-enforce-single-numa-node],
[AC_HELP_STRING([--enable-hwloc-enforce-single-numa-node],
[Repin process if assigned affinity to cores across multiple NUMA nodes (default:disabled)])])
AS_IF([test "$enable_hwloc_enforce_single_numa_node" = "yes"], [AC_DEFINE([HWLOC_ENFORCE_SINGLE_NUMA_NODE], [1], [Re-assign CPU affinity on processes with affinity to cores on multiple NUMA nodes])])
[Repin process to ensure it has affinity to cores within a single NUMA node (default:disabled)])])
AS_IF([test "$enable_hwloc_enforce_single_numa_node" = "yes"], [AC_DEFINE([HWLOC_ENFORCE_SINGLE_NUMA_NODE], [1], [Repin process to ensure it has affinity to cores within a single NUMA node])])

AC_ARG_ENABLE([manual-progress],
[AC_HELP_STRING([--enable-manual-progress],
Expand Down
4 changes: 2 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@ shmem_internal_heap_postinit(void)
}

ret = hwloc_topology_set_io_types_filter(shmem_internal_topology, HWLOC_TYPE_FILTER_KEEP_ALL);
if (ret < 0) {
if (ret < 0) {
RETURN_ERROR_MSG("hwloc_topology_set_io_types_filter failed (%s)\n", strerror(errno));
}

ret = hwloc_topology_load(shmem_internal_topology);
if (ret < 0) {
RETURN_ERROR_MSG("hwloc_topology_load failed (%s)\n", strerror(errno));
}
#if defined HWLOC_ENFORCE_SINGLE_SOCKET || defined HWLOC_ENFORCE_SINGLE_NUMA_NODE
#if defined(HWLOC_ENFORCE_SINGLE_SOCKET) || defined(HWLOC_ENFORCE_SINGLE_NUMA_NODE)
hwloc_bitmap_t bindset = hwloc_bitmap_alloc();
hwloc_bitmap_t bindset_all = hwloc_bitmap_alloc();
hwloc_bitmap_t bindset_covering_obj = hwloc_bitmap_alloc();
Expand Down

0 comments on commit 539a40f

Please sign in to comment.