c7c3de87f5
http://marc.info/?l=linux-mm-commits&m=127352503417787&w=2 for more details. * Remove the ptmalloc memory component; replace it with a new "linux" memory component. * The linux memory component will conditionally compile in support for ummunotify. At run-time, if it has ummunotify support and finds run-time support for ummunotify (i.e., /dev/ummunotify), it uses it. If not, it tries to use ptmalloc via the glibc memory hooks. * Add some more API functions to the memory framework to accomodate the ummunotify model (i.e., poll to see if memory has "changed"). * Add appropriate calls in the rcache to the new memory APIs to see if memory has changed, and to react accordingly. * Add a few comments in the openib BTL to indicate why we don't need to notify the OPAL memory framework about specific instances of registered memory. * Add dummy API calls in the solaris malloc component (since it doesn't have polling/"did memory change" support). This commit was SVN r23113.
97 строки
2.8 KiB
Makefile
97 строки
2.8 KiB
Makefile
#
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
# of Tennessee Research Foundation. All rights
|
|
# reserved.
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
AM_CPPFLAGS = -DMALLOC_DEBUG=0
|
|
|
|
if OPAL_HAVE_POSIX_THREADS
|
|
AM_CPPFLAGS += \
|
|
-D_GNU_SOURCE=1 \
|
|
-DUSE_TSD_DATA_HACK=1 \
|
|
-DMALLOC_HOOKS=1 \
|
|
-I$(srcdir)/sysdeps/pthread
|
|
endif
|
|
if OPAL_HAVE_SOLARIS_THREADS
|
|
AM_CPPFLAGS += -I$(srcdir)/sysdeps/solaris
|
|
endif
|
|
# this must come *after* the threads -Is
|
|
AM_CPPFLAGS += -I$(srcdir)/sysdeps/generic
|
|
|
|
# ptmalloc requires us to include the copyright notice in the
|
|
# software. So install it in the same place that we install ROMIO's
|
|
# copyright notices.
|
|
|
|
docdir = $(datadir)/openmpi/doc
|
|
doc_DATA = COPYRIGHT-ptmalloc2.txt
|
|
|
|
# Help file
|
|
dist_pkgdata_DATA = help-opal-memory-linux.txt
|
|
|
|
# This component is only ever built statically (i.e., slurped into
|
|
# libopen-pal) -- it is never built as a DSO.
|
|
noinst_LTLIBRARIES = libmca_memory_linux.la
|
|
libmca_memory_linux_la_SOURCES = \
|
|
memory_linux.h \
|
|
memory_linux_component.c
|
|
libmca_memory_linux_la_LDFLAGS = \
|
|
-module -avoid-version $(memory_linux_LDFLAGS)
|
|
libmca_memory_linux_la_LIBADD = $(memory_linux_LIBS)
|
|
|
|
# Do we have ptmalloc2 support?
|
|
if MEMORY_LINUX_PTMALLOC2
|
|
libmca_memory_linux_la_SOURCES += \
|
|
memory_linux_ptmalloc2.c \
|
|
memory_linux_munmap.c \
|
|
rename.h \
|
|
malloc.c \
|
|
malloc-stats.c \
|
|
malloc.h
|
|
endif
|
|
|
|
# Do we have ummunotify support?
|
|
if MEMORY_LINUX_UMMUNOTIFY
|
|
libmca_memory_linux_la_SOURCES += memory_linux_ummunotify.c public.h
|
|
endif
|
|
|
|
# these are included directly and shouldn't be built solo
|
|
EXTRA_libmca_memory_linux_la_SOURCES = \
|
|
arena.c \
|
|
hooks.c
|
|
|
|
EXTRA_DIST = \
|
|
README-open-mpi.txt \
|
|
README-ptmalloc2.txt \
|
|
ChangeLog-ptmalloc2.txt \
|
|
COPYRIGHT-ptmalloc2.txt \
|
|
lran2.h \
|
|
t-test.h \
|
|
t-test1.c \
|
|
t-test2.c \
|
|
tst-mallocstate.c \
|
|
tst-mstats.c \
|
|
sysdeps/sproc/malloc-machine.h \
|
|
sysdeps/sproc/thread-st.h \
|
|
sysdeps/pthread/malloc-machine.h \
|
|
sysdeps/pthread/thread-st.h \
|
|
sysdeps/solaris/malloc-machine.h \
|
|
sysdeps/solaris/thread-st.h \
|
|
sysdeps/generic/malloc-machine.h \
|
|
sysdeps/generic/thread-st.h \
|
|
sysdeps/generic/atomic.h \
|
|
$(doc_DATA)
|