1
1
openmpi/ompi/mpi/c/Makefile.am

432 строки
11 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-2012 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
# Copyright (c) 2012 Oak Ridge National Laboratory. All rights reserved.
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights
# reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
SUBDIRS = profile
#
# OMPI_PRPOFILING_DEFINES flag s enabled when we want our MPI_* symbols
# to be replaced by PMPI_*. In other words, this flag decides
# whether "profile/defines.h" is included or not. "profile/defines.h"
# replaces all MPI_* symbols with PMPI_* symbols. In this directory,
# we need it to be 0
#
AM_CPPFLAGS = -DOMPI_PROFILING_DEFINES=0
#
# The top directory always builds MPI_* bindings. The bottom directory
# always builds PMPI_* bindings. The cases where the top directory
# needs to be built are:
#
# 1. When profiling is disabled.
# 2. When profiling is enabled but weak symbol support is absent.
#
noinst_LTLIBRARIES = libmpi_c.la
== Highlights == 1. New mpifort wrapper compiler: you can utilize mpif.h, use mpi, and use mpi_f08 through this one wrapper compiler 1. mpif77 and mpif90 still exist, but are sym links to mpifort and may be removed in a future release 1. The mpi module has been re-implemented and is significantly "mo' bettah" 1. The mpi_f08 module offers many, many improvements over mpif.h and the mpi module This stuff is coming from a VERY long-lived mercurial branch (3 years!); it'll almost certainly take a few SVN commits and a bunch of testing before I get it correctly committed to the SVN trunk. == More details == Craig Rasmussen and I have been working with the MPI-3 Fortran WG and Fortran J3 committees for a long, long time to make a prototype MPI-3 Fortran bindings implementation. We think we're at a stable enough state to bring this stuff back to the trunk, with the goal of including it in OMPI v1.7. Special thanks go out to everyone who has been incredibly patient and helpful to us in this journey: * Rolf Rabenseifner/HLRS (mastermind/genius behind the entire MPI-3 Fortran effort) * The Fortran J3 committee * Tobias Burnus/gfortran * Tony !Goetz/Absoft * Terry !Donte/Oracle * ...and probably others whom I'm forgetting :-( There's still opportunities for optimization in the mpi_f08 implementation, but by and large, it is as far along as it can be until Fortran compilers start implementing the new F08 dimension(..) syntax. Note that gfortran is currently unsupported for the mpi_f08 module and the new mpi module. gfortran users will a) fall back to the same mpi module implementation that is in OMPI v1.5.x, and b) not get the new mpi_f08 module. The gfortran maintainers are actively working hard to add the necessary features to support both the new mpi_f08 module and the new mpi module implementations. This will take some time. As mentioned above, ompi/mpi/f77 and ompi/mpi/f90 no longer exist. All the fortran bindings implementations have been collated under ompi/mpi/fortran; each implementation has its own subdirectory: {{{ ompi/mpi/fortran/ base/ - glue code mpif-h/ - what used to be ompi/mpi/f77 use-mpi-tkr/ - what used to be ompi/mpi/f90 use-mpi-ignore-tkr/ - new mpi module implementation use-mpi-f08/ - new mpi_f08 module implementation }}} There's also a prototype 6-function-MPI implementation under use-mpi-f08-desc that emulates the new F08 dimension(..) syntax that isn't fully available in Fortran compilers yet. We did that to prove it to ourselves that it could be done once the compilers fully support it. This directory/implementation will likely eventually replace the use-mpi-f08 version. Other things that were done: * ompi_info grew a few new output fields to describe what level of Fortran support is included * Existing Fortran examples in examples/ were renamed; new mpi_f08 examples were added * The old Fortran MPI libraries were renamed: * libmpi_f77 -> libmpi_mpifh * libmpi_f90 -> libmpi_usempi * The configury for Fortran was consolidated and significantly slimmed down. Note that the F77 env variable is now IGNORED for configure; you should only use FC. Example: {{{ shell$ ./configure CC=icc CXX=icpc FC=ifort ... }}} All of this work was done in a Mercurial branch off the SVN trunk, and hosted at Bitbucket. This branch has got to be one of OMPI's longest-running branches. Its first commit was Tue Apr 07 23:01:46 2009 -0400 -- it's over 3 years old! :-) We think we've pulled in all relevant changes from the OMPI trunk (e.g., Fortran implementations of the new MPI-3 MPROBE stuff for mpif.h, use mpi, and use mpi_f08, and the recent Fujitsu Fortran patches). I anticipate some instability when we bring this stuff into the trunk, simply because it touches a LOT of code in the MPI layer in the OMPI code base. We'll try our best to make it as pain-free as possible, but please bear with us when it is committed. This commit was SVN r26283.
2012-04-18 19:57:29 +04:00
if BUILD_MPI_BINDINGS_LAYER
noinst_LTLIBRARIES += libmpi_c_mpi.la
endif
headers = bindings.h
#
# libmpi_c.la is always build because it contains some non-profilied
# functions.
#
libmpi_c_la_SOURCES = \
attr_fn.c
#
# libmpi_c_mpi.la is only built in some cases (see above)
#
libmpi_c_mpi_la_SOURCES = \
abort.c \
add_error_class.c \
add_error_code.c \
add_error_string.c \
address.c \
allgather.c \
iallgather.c \
allgatherv.c \
iallgatherv.c \
alloc_mem.c \
allreduce.c \
iallreduce.c \
alltoall.c \
ialltoall.c \
alltoallv.c \
ialltoallv.c \
alltoallw.c \
ialltoallw.c \
attr_delete.c \
attr_get.c \
attr_put.c \
barrier.c \
ibarrier.c \
bcast.c \
ibcast.c \
bsend.c \
bsend_init.c \
buffer_attach.c \
buffer_detach.c \
cancel.c \
cart_coords.c \
cart_create.c \
cartdim_get.c \
cart_get.c \
cart_map.c \
cart_rank.c \
cart_shift.c \
cart_sub.c \
close_port.c \
comm_accept.c \
comm_c2f.c \
comm_call_errhandler.c \
comm_compare.c \
comm_connect.c \
comm_create.c \
comm_create_errhandler.c \
comm_create_group.c \
comm_create_keyval.c \
comm_delete_attr.c \
comm_disconnect.c \
comm_dup.c \
comm_dup_with_info.c \
comm_idup.c \
comm_f2c.c \
comm_free.c \
comm_free_keyval.c \
comm_get_attr.c \
comm_get_errhandler.c \
comm_get_name.c \
comm_get_parent.c \
comm_group.c \
comm_join.c \
comm_rank.c \
comm_remote_group.c \
comm_remote_size.c \
comm_set_attr.c \
dist_graph_create.c \
dist_graph_create_adjacent.c \
dist_graph_neighbors.c \
dist_graph_neighbors_count.c \
comm_set_errhandler.c \
comm_set_name.c \
comm_size.c \
comm_spawn.c \
comm_spawn_multiple.c \
comm_split.c \
comm_split_type.c \
comm_test_inter.c \
dims_create.c \
errhandler_c2f.c \
errhandler_create.c \
errhandler_f2c.c \
errhandler_free.c \
errhandler_get.c \
errhandler_set.c \
error_class.c \
error_string.c \
exscan.c \
iexscan.c \
finalize.c \
finalized.c \
free_mem.c \
gather.c \
igather.c \
gatherv.c \
igatherv.c \
get_address.c \
get_count.c \
get_elements.c \
get_elements_x.c \
get_library_version.c \
get_processor_name.c \
get_version.c \
graph_create.c \
graph_get.c \
graph_map.c \
graph_neighbors_count.c \
graph_neighbors.c \
graphdims_get.c \
grequest_complete.c \
grequest_start.c \
group_c2f.c \
group_compare.c \
group_difference.c \
group_excl.c \
group_f2c.c \
group_free.c \
group_incl.c \
group_intersection.c \
group_range_excl.c \
group_range_incl.c \
group_rank.c \
group_size.c \
group_translate_ranks.c \
group_union.c \
ibsend.c \
improbe.c \
imrecv.c \
info_c2f.c \
info_create.c \
info_delete.c \
info_dup.c \
info_f2c.c \
info_free.c \
info_get.c \
info_get_nkeys.c \
info_get_nthkey.c \
info_get_valuelen.c \
info_set.c \
init.c \
init_thread.c \
initialized.c \
intercomm_create.c \
intercomm_merge.c \
iprobe.c \
irecv.c \
irsend.c \
is_thread_main.c \
isend.c \
issend.c \
keyval_create.c \
keyval_free.c \
lookup_name.c \
message_f2c.c \
message_c2f.c \
mprobe.c \
mrecv.c \
neighbor_allgather.c \
ineighbor_allgather.c \
neighbor_allgatherv.c \
ineighbor_allgatherv.c \
neighbor_alltoall.c \
ineighbor_alltoall.c \
neighbor_alltoallv.c \
ineighbor_alltoallv.c \
neighbor_alltoallw.c \
ineighbor_alltoallw.c \
op_c2f.c \
op_commutative.c \
op_create.c \
op_f2c.c \
op_free.c \
open_port.c \
pack_external.c \
pack_external_size.c \
pack.c \
pack_size.c \
pcontrol.c \
probe.c \
publish_name.c \
query_thread.c \
recv_init.c \
recv.c \
reduce.c \
ireduce.c \
Two major things in this commit: * New "op" MPI layer framework * Addition of the MPI_REDUCE_LOCAL proposed function (for MPI-2.2) = Op framework = Add new "op" framework in the ompi layer. This framework replaces the hard-coded MPI_Op back-end functions for (MPI_Op, MPI_Datatype) tuples for pre-defined MPI_Ops, allowing components and modules to provide the back-end functions. The intent is that components can be written to take advantage of hardware acceleration (GPU, FPGA, specialized CPU instructions, etc.). Similar to other frameworks, components are intended to be able to discover at run-time if they can be used, and if so, elect themselves to be selected (or disqualify themselves from selection if they cannot run). If specialized hardware is not available, there is a default set of functions that will automatically be used. This framework is ''not'' used for user-defined MPI_Ops. The new op framework is similar to the existing coll framework, in that the final set of function pointers that are used on any given intrinsic MPI_Op can be a mixed bag of function pointers, potentially coming from multiple different op modules. This allows for hardware that only supports some of the operations, not all of them (e.g., a GPU that only supports single-precision operations). All the hard-coded back-end MPI_Op functions for (MPI_Op, MPI_Datatype) tuples still exist, but unlike coll, they're in the framework base (vs. being in a separate "basic" component) and are automatically used if no component is found at runtime that provides a module with the necessary function pointers. There is an "example" op component that will hopefully be useful to those writing meaningful op components. It is currently .ompi_ignore'd so that it doesn't impinge on other developers (it's somewhat chatty in terms of opal_output() so that you can tell when its functions have been invoked). See the README file in the example op component directory. Developers of new op components are encouraged to look at the following wiki pages: https://svn.open-mpi.org/trac/ompi/wiki/devel/Autogen https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateComponent https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateFramework = MPI_REDUCE_LOCAL = Part of the MPI-2.2 proposal listed here: https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/24 is to add a new function named MPI_REDUCE_LOCAL. It is very easy to implement, so I added it (also because it makes testing the op framework pretty easy -- you can do it in serial rather than via parallel reductions). There's even a man page! This commit was SVN r20280.
2009-01-15 02:44:31 +03:00
reduce_local.c \
reduce_scatter.c \
ireduce_scatter.c \
reduce_scatter_block.c \
ireduce_scatter_block.c \
request_c2f.c \
request_f2c.c \
request_free.c \
request_get_status.c \
rsend_init.c \
rsend.c \
scan.c \
iscan.c \
scatter.c \
iscatter.c \
scatterv.c \
iscatterv.c \
send.c \
send_init.c \
sendrecv.c \
sendrecv_replace.c \
ssend_init.c \
ssend.c \
start.c \
startall.c \
status_c2f.c \
status_f2c.c \
status_set_cancelled.c \
status_set_elements.c \
status_set_elements_x.c \
testall.c \
testany.c \
test.c \
test_cancelled.c \
testsome.c \
topo_test.c \
type_c2f.c \
type_commit.c \
type_contiguous.c \
type_create_darray.c \
type_create_f90_complex.c \
type_create_f90_integer.c \
type_create_f90_real.c \
type_create_hindexed.c \
type_create_hvector.c \
type_create_indexed_block.c \
type_create_hindexed_block.c \
type_create_keyval.c \
type_create_resized.c \
type_create_struct.c \
type_create_subarray.c \
type_delete_attr.c \
type_dup.c \
type_extent.c \
type_f2c.c \
type_free.c \
type_free_keyval.c \
type_get_attr.c \
type_get_contents.c \
type_get_envelope.c \
type_get_extent.c \
type_get_extent_x.c \
type_get_name.c \
type_get_true_extent.c \
type_get_true_extent_x.c \
type_hindexed.c \
type_hvector.c \
type_indexed.c \
type_lb.c \
type_match_size.c \
type_set_attr.c \
type_set_name.c \
type_size.c \
type_size_x.c \
type_struct.c \
type_ub.c \
type_vector.c \
unpack_external.c \
unpack.c \
unpublish_name.c \
wait.c \
waitall.c \
waitany.c \
waitsome.c \
wtime.c \
wtick.c \
accumulate.c \
get.c \
put.c \
win_c2f.c \
win_call_errhandler.c \
win_complete.c \
win_create_errhandler.c \
win_create_keyval.c \
win_create.c \
win_delete_attr.c \
win_f2c.c \
win_fence.c \
win_free_keyval.c \
win_free.c \
win_get_attr.c \
win_get_errhandler.c \
win_get_group.c \
win_get_name.c \
win_lock.c \
win_post.c \
win_set_attr.c \
win_set_errhandler.c \
win_set_name.c \
win_start.c \
win_test.c \
win_unlock.c \
win_wait.c
if OMPI_PROVIDE_MPI_FILE_INTERFACE
libmpi_c_mpi_la_SOURCES += \
file_c2f.c \
file_call_errhandler.c \
file_close.c \
file_create_errhandler.c \
file_delete.c \
file_f2c.c \
file_get_amode.c \
file_get_atomicity.c \
file_get_byte_offset.c \
file_get_errhandler.c \
file_get_group.c \
file_get_info.c \
file_get_position.c \
file_get_position_shared.c \
file_get_size.c \
file_get_type_extent.c \
file_get_view.c \
file_iread_at.c \
file_iread.c \
file_iread_shared.c \
file_iwrite_at.c \
file_iwrite.c \
file_iwrite_shared.c \
file_open.c \
file_preallocate.c \
file_read_all_begin.c \
file_read_all.c \
file_read_all_end.c \
file_read_at_all_begin.c \
file_read_at_all.c \
file_read_at_all_end.c \
file_read_at.c \
file_read.c \
file_read_ordered_begin.c \
file_read_ordered.c \
file_read_ordered_end.c \
file_read_shared.c \
file_seek.c \
file_seek_shared.c \
file_set_atomicity.c \
file_set_errhandler.c \
file_set_info.c \
file_set_size.c \
file_set_view.c \
file_sync.c \
file_write_all_begin.c \
file_write_all.c \
file_write_all_end.c \
file_write_at_all_begin.c \
file_write_at_all.c \
file_write_at_all_end.c \
file_write_at.c \
file_write.c \
file_write_ordered_begin.c \
file_write_ordered.c \
file_write_ordered_end.c \
file_write_shared.c \
register_datarep.c
endif
# Conditionally install the header files
if WANT_INSTALL_HEADERS
ompidir = $(includedir)/openmpi/$(subdir)
ompi_HEADERS = $(headers)
endif