359464a144
--enable-mpi-ext configure switch in the top-level README file). See Josh's excellent wiki page about OMPI extensions: https://svn.open-mpi.org/trac/ompi/wiki/MPIExtensions This extension exposes a new API to MPI applications: {{{ int OMPI_Affinity_str(char ompi_bound[OMPI_AFFINITY_STRING_MAX], char current_binding[OMPI_AFFINITY_STRING_MAX], char exists[OMPI_AFFINITY_STRING_MAX]); }}} It returns 3 things. Each are a prettyprint string describing sets of processors in terms of sockets and cores: 1. What Open MPI bound this process to. If Open MPI didn't bind this process, the prettyprint string says so. 1. What this process is currently bound to. If the process is unbound, the prettyprint string says so. This string is a separate OUT parameter to detect the case where some other entity bound the process (potentially after Open MPI bound it). 1. What processors are availabile in the system, mainly for reference. This commit was SVN r23018.
35 строки
847 B
Makefile
35 строки
847 B
Makefile
#
|
|
# Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
include $(top_srcdir)/Makefile.man-page-rules
|
|
|
|
headers = mpiext_affinity_c.h
|
|
|
|
sources = c/affinity_str.c
|
|
|
|
man_pages = OMPI_Affinity_str.3
|
|
|
|
lib = libext_mpiext_affinity.la
|
|
lib_sources = $(sources)
|
|
|
|
extcomponentdir = $(pkglibdir)
|
|
|
|
noinst_LTLIBRARIES = $(lib)
|
|
libext_mpiext_affinity_la_SOURCES = $(lib_sources)
|
|
libext_mpiext_affinity_la_LDFLAGS = -module -avoid-version
|
|
|
|
ompidir = $(includedir)/openmpi/ompi/mpiext/affinity
|
|
ompi_HEADERS = $(headers)
|
|
|
|
nodist_man_MANS = $(man_pages)
|
|
EXTRA_DIST = $(man_pages:.3=.3in)
|