Skip to content
Snippets Groups Projects
Commit 39a5acd1 authored by Moe Jette's avatar Moe Jette
Browse files

Add test for NUMA functions.

parent baa6e25c
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ EXTRA_DIST = \ ...@@ -18,6 +18,7 @@ EXTRA_DIST = \
x_ac_gpl_licensed.m4 \ x_ac_gpl_licensed.m4 \
x_ac_munge.m4 \ x_ac_munge.m4 \
x_ac_ncurses.m4 \ x_ac_ncurses.m4 \
x_ac_numa.m4 \
x_ac_ptrace.m4 \ x_ac_ptrace.m4 \
x_ac_readline.m4 \ x_ac_readline.m4 \
x_ac_setproctitle.m4 \ x_ac_setproctitle.m4 \
......
##*****************************************************************************
# $Id$
##*****************************************************************************
# AUTHOR:
# Morris Jette <jette1@llnl.gov>
#
# SYNOPSIS:
# X_AC_NUMA
#
# DESCRIPTION:
# Test for NUMA memory afffinity functions and set the definitions.
#
# WARNINGS:
# This macro must be placed after AC_PROG_CC or equivalent.
##*****************************************************************************
AC_DEFUN([X_AC_NUMA], [
# Test if numa_available function exists
save_LIBS="$LIBS"
LIBS="-lnuma $LIBS"
AC_CHECK_FUNCS(numa_available, [have_numa_available=yes], [LIBS="$save_LIBS"])
AM_CONDITIONAL(HAVE_NUMA_AFFINITY, test "x$have_numa_available" = "xyes")
])
...@@ -67,6 +67,10 @@ dnl Check of sched_getaffinity exists and it's argument count ...@@ -67,6 +67,10 @@ dnl Check of sched_getaffinity exists and it's argument count
dnl dnl
X_AC_AFFINITY X_AC_AFFINITY
dnl Check if NUMA memory afffinity functions exist
dnl
X_AC_NUMA
dnl Checks for types. dnl Checks for types.
dnl dnl
X_AC_SLURM_BIGENDIAN X_AC_SLURM_BIGENDIAN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment