Skip to content

Commit

Permalink
Get rid of unsupported/untested topology detection options.
Browse files Browse the repository at this point in the history
  • Loading branch information
insertinterestingnamehere committed Sep 18, 2024
1 parent 2d3fb7a commit 8b562e2
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 1,996 deletions.
58 changes: 0 additions & 58 deletions config/qthread_check_libnuma.m4

This file was deleted.

36 changes: 0 additions & 36 deletions config/qthread_check_linux.m4

This file was deleted.

29 changes: 0 additions & 29 deletions config/qthread_check_machtopo.m4

This file was deleted.

37 changes: 0 additions & 37 deletions config/qthread_check_plpa.m4

This file was deleted.

24 changes: 2 additions & 22 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ esac
# Figure out whether the compiler has builtin atomic operations
AS_IF([test "x$enable_hardware_atomics" != xno],
[QTHREAD_CHECK_ATOMICS($sizeof_aligned_t)])
QTHREAD_VAMACROS

QTHREAD_BUILTIN_SYNCHRONIZE

Expand Down Expand Up @@ -866,30 +865,11 @@ AS_IF([test "x$qthread_topo" != xno],
[AS_IF([test "x$qthread_topo" = "xnone_specified"],
[qthread_topo=no])
# First, check for hwloc, since it gives me the most portable/flexible/reliable/detailed information.
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xbinders -o "x$qthread_topo" = xhwloc -o "x$qthread_topo" = xhwloc_v2],
[QTHREAD_CHECK_HWLOC([AS_IF([test "x$qthread_topo" != xhwloc -a "x$qthread_topo" != xhwloc_v2 -a "x$qthread_topo" != xbinders],
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xbinders -o "x$qthread_topo" = xhwloc],
[QTHREAD_CHECK_HWLOC([AS_IF([test "x$qthread_topo" != xhwloc -a "x$qthread_topo" != xbinders],
[qthread_topo=hwloc])],
[AS_IF([test "x$qthread_topo" != xno],
[AC_MSG_ERROR([Specified topology library ($qthread_topo) does not work.])])])])
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xlibnuma -o "x$qthread_topo" = xlibnumaV2],
[QTHREAD_CHECK_LIBNUMA([qthread_topo=libnuma],
[qthread_topo=libnumaV2],
[AS_IF([test "x$qthread_topo" != xno],
[AC_MSG_ERROR([Specified topology library ($qthread_topo) does not work.])])])])
# Third, check any others.
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xmach],
[QTHREAD_CHECK_MACHTOPO([qthread_topo=mach],
[AS_IF([test "x$qthread_topo" != xno],
[AC_MSG_ERROR([Specified topology library ($qthread_topo) does not work.])])])])
# PLPA is deprecated in favor of hwloc
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xplpa],
[QTHREAD_CHECK_PLPA([qthread_topo=plpa],
[AS_IF([test "x$qthread_topo" != xno],
[AC_MSG_ERROR([Specified topology library ($qthread_topo) does not work.])])])])
AS_IF([test "x$qthread_topo" = xno -o "x$qthread_topo" = xsys],
[QTHREAD_CHECK_LINUX([qthread_topo=sys],
[AS_IF([test "x$qthread_topo" = xsys],
[AC_MSG_ERROR([Specified topology library ($qthread_topo) does not work.])])])])
])

AS_IF([test "x$enable_lf_febs" == "xyes"],
Expand Down
4 changes: 0 additions & 4 deletions include/qt_affinity.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
typedef struct qthread_shepherd_s qthread_shepherd_t;
#endif

#if defined(QTHREAD_HAVE_LIBNUMA)
#define QTHREAD_HAVE_MEM_AFFINITY
#endif

#if defined(QTHREAD_HAVE_HWLOC) && (HWLOC_API_VERSION > 0x00010000)
#define QTHREAD_HAVE_MEM_AFFINITY
#endif
Expand Down
Loading

0 comments on commit 8b562e2

Please sign in to comment.