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

Add test for /dev/cpuset and add cpuset module to task/affinity.

parent adf66a37
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,17 @@ AC_DEFUN([X_AC_AFFINITY], [
AC_MSG_WARN([Unable to locate PLPA processor affinity functions])
fi
#
# Test for cpusets
#
if test -d "/dev/cpuset" ; then
have_sched_setaffinity=yes
fi
#
# Test for other affinity functions as appropriate
# TBD
#
#
# Set HAVE_SCHED_SETAFFINITY if any task affinity supported
......
......@@ -23105,9 +23105,17 @@ _ACEOF
echo "$as_me: WARNING: Unable to locate PLPA processor affinity functions" >&2;}
fi
 
#
# Test for cpusets
#
if test -d "/dev/cpuset" ; then
have_sched_setaffinity=yes
fi
#
# Test for other affinity functions as appropriate
# TBD
#
 
#
# Set HAVE_SCHED_SETAFFINITY if any task affinity supported
......
......@@ -9,8 +9,8 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common
if HAVE_SCHED_SETAFFINITY
pkglib_LTLIBRARIES = task_affinity.la
task_affinity_la_SOURCES = \
affinity.c \
affinity.h \
affinity.c affinity.h \
cpuset.c cpuset.h \
dist_tasks.c dist_tasks.h \
numa.c \
schedutils.c \
......@@ -20,8 +20,8 @@ task_affinity_la_LIBADD = $(top_builddir)/src/common/libcommon.la
else
pkglib_LTLIBRARIES =
EXTRA_task_affinity_la_SOURCES = \
affinity.c \
affinity.h \
affinity.c affinity.h \
cpuset.c cpuset.h \
dist_tasks.c dist_tasks.h \
numa.c \
schedutils.c \
......
......@@ -78,13 +78,16 @@ am__installdirs = "$(DESTDIR)$(pkglibdir)"
pkglibLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(pkglib_LTLIBRARIES)
@HAVE_SCHED_SETAFFINITY_TRUE@task_affinity_la_DEPENDENCIES = $(top_builddir)/src/common/libcommon.la
am__task_affinity_la_SOURCES_DIST = affinity.c affinity.h dist_tasks.c \
dist_tasks.h numa.c schedutils.c task_affinity.c
am__task_affinity_la_SOURCES_DIST = affinity.c affinity.h cpuset.c \
cpuset.h dist_tasks.c dist_tasks.h numa.c schedutils.c \
task_affinity.c
@HAVE_SCHED_SETAFFINITY_TRUE@am_task_affinity_la_OBJECTS = \
@HAVE_SCHED_SETAFFINITY_TRUE@ affinity.lo dist_tasks.lo numa.lo \
@HAVE_SCHED_SETAFFINITY_TRUE@ affinity.lo cpuset.lo \
@HAVE_SCHED_SETAFFINITY_TRUE@ dist_tasks.lo numa.lo \
@HAVE_SCHED_SETAFFINITY_TRUE@ schedutils.lo task_affinity.lo
am__EXTRA_task_affinity_la_SOURCES_DIST = affinity.c affinity.h \
dist_tasks.c dist_tasks.h numa.c schedutils.c task_affinity.c
cpuset.c cpuset.h dist_tasks.c dist_tasks.h numa.c \
schedutils.c task_affinity.c
task_affinity_la_OBJECTS = $(am_task_affinity_la_OBJECTS)
@HAVE_SCHED_SETAFFINITY_TRUE@am_task_affinity_la_rpath = -rpath \
@HAVE_SCHED_SETAFFINITY_TRUE@ $(pkglibdir)
......@@ -295,8 +298,8 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common
@HAVE_SCHED_SETAFFINITY_FALSE@pkglib_LTLIBRARIES =
@HAVE_SCHED_SETAFFINITY_TRUE@pkglib_LTLIBRARIES = task_affinity.la
@HAVE_SCHED_SETAFFINITY_TRUE@task_affinity_la_SOURCES = \
@HAVE_SCHED_SETAFFINITY_TRUE@ affinity.c \
@HAVE_SCHED_SETAFFINITY_TRUE@ affinity.h \
@HAVE_SCHED_SETAFFINITY_TRUE@ affinity.c affinity.h \
@HAVE_SCHED_SETAFFINITY_TRUE@ cpuset.c cpuset.h \
@HAVE_SCHED_SETAFFINITY_TRUE@ dist_tasks.c dist_tasks.h \
@HAVE_SCHED_SETAFFINITY_TRUE@ numa.c \
@HAVE_SCHED_SETAFFINITY_TRUE@ schedutils.c \
......@@ -305,8 +308,8 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common
@HAVE_SCHED_SETAFFINITY_TRUE@task_affinity_la_LDFLAGS = $(SO_LDFLAGS) $(NUMA_LIBS) $(PLPA_LIBS) $(PLUGIN_FLAGS)
@HAVE_SCHED_SETAFFINITY_TRUE@task_affinity_la_LIBADD = $(top_builddir)/src/common/libcommon.la
@HAVE_SCHED_SETAFFINITY_FALSE@EXTRA_task_affinity_la_SOURCES = \
@HAVE_SCHED_SETAFFINITY_FALSE@ affinity.c \
@HAVE_SCHED_SETAFFINITY_FALSE@ affinity.h \
@HAVE_SCHED_SETAFFINITY_FALSE@ affinity.c affinity.h \
@HAVE_SCHED_SETAFFINITY_FALSE@ cpuset.c cpuset.h \
@HAVE_SCHED_SETAFFINITY_FALSE@ dist_tasks.c dist_tasks.h \
@HAVE_SCHED_SETAFFINITY_FALSE@ numa.c \
@HAVE_SCHED_SETAFFINITY_FALSE@ schedutils.c \
......@@ -382,6 +385,7 @@ distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/affinity.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpuset.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dist_tasks.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/numa.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/schedutils.Plo@am__quote@
......
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