Updates to reflect new directory structure
This commit was SVN r227.
Этот коммит содержится в:
родитель
fa83b1795b
Коммит
2fc377a408
@ -270,7 +270,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# make sure we are at the top of the tree
|
# make sure we are at the top of the tree
|
||||||
if test -f VERSION -a -f configure.ac -a -f src/mpi/c/init.c ; then
|
if test -f VERSION -a -f configure.ac -a -f src/mpi/interface/c/init.c ; then
|
||||||
bad=0
|
bad=0
|
||||||
else
|
else
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
17
configure.ac
17
configure.ac
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
# Init autoconf
|
# Init autoconf
|
||||||
|
|
||||||
AC_INIT(./src/mpi/c/init.c)
|
AC_INIT(./src/mpi/interface/c/init.c)
|
||||||
AC_PREREQ(2.52)
|
AC_PREREQ(2.52)
|
||||||
AC_CONFIG_AUX_DIR(./config)
|
AC_CONFIG_AUX_DIR(./config)
|
||||||
|
|
||||||
@ -416,12 +416,15 @@ AC_CONFIG_FILES([
|
|||||||
src/lam/util/Makefile
|
src/lam/util/Makefile
|
||||||
|
|
||||||
src/mpi/Makefile
|
src/mpi/Makefile
|
||||||
src/mpi/c/Makefile
|
src/mpi/communicator/Makefile
|
||||||
src/mpi/c/profile/Makefile
|
src/mpi/datatype/Makefile
|
||||||
src/mpi/cxx/Makefile
|
src/mpi/interface/Makefile
|
||||||
src/mpi/f77/Makefile
|
src/mpi/interface/c/Makefile
|
||||||
src/mpi/f77/profile/Makefile
|
src/mpi/interface/c/profile/Makefile
|
||||||
src/mpi/f90/Makefile
|
src/mpi/interface/cxx/Makefile
|
||||||
|
src/mpi/interface/f77/Makefile
|
||||||
|
src/mpi/interface/f77/profile/Makefile
|
||||||
|
src/mpi/interface/f90/Makefile
|
||||||
|
|
||||||
src/mca/Makefile
|
src/mca/Makefile
|
||||||
src/mca/common/Makefile
|
src/mca/common/Makefile
|
||||||
|
@ -5,23 +5,7 @@
|
|||||||
|
|
||||||
include $(top_srcdir)/config/Makefile.options
|
include $(top_srcdir)/config/Makefile.options
|
||||||
|
|
||||||
# See if configure found a valid f77 compiler
|
SUBDIRS = communicator datatype interface
|
||||||
|
|
||||||
if BUILD_MPI_F77
|
|
||||||
f77_lib = f77/libmpi_f77.la
|
|
||||||
else
|
|
||||||
f77_lib =
|
|
||||||
endif
|
|
||||||
|
|
||||||
# See if configure found a valid f90/f95 compiler
|
|
||||||
|
|
||||||
if BUILD_MPI_F90
|
|
||||||
f90_lib =
|
|
||||||
else
|
|
||||||
f90_lib =
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = c cxx f77 f90
|
|
||||||
|
|
||||||
# If the --enable-single-library flag was given to configure, then the
|
# If the --enable-single-library flag was given to configure, then the
|
||||||
# user wants to merge liblam and libmpi into a single big, honkin'
|
# user wants to merge liblam and libmpi into a single big, honkin'
|
||||||
@ -39,7 +23,11 @@ endif
|
|||||||
lib_LTLIBRARIES = $(install_lib)
|
lib_LTLIBRARIES = $(install_lib)
|
||||||
noinst_LTLIBRARIES = $(convenience_lib)
|
noinst_LTLIBRARIES = $(convenience_lib)
|
||||||
|
|
||||||
sources = c/libmpi_c.la $(f77_lib) $(f90_lib)
|
# To be added shortly
|
||||||
|
# communicator/libmpi_communicator.la \
|
||||||
|
sources = \
|
||||||
|
datatype/libmpi_datatype.la \
|
||||||
|
interface/libmpi_interface.la
|
||||||
|
|
||||||
libmpi_la_SOURCES =
|
libmpi_la_SOURCES =
|
||||||
libmpi_la_LIBADD = $(sources)
|
libmpi_la_LIBADD = $(sources)
|
||||||
|
7
src/mpi/communicator/Makefile.am
Обычный файл
7
src/mpi/communicator/Makefile.am
Обычный файл
@ -0,0 +1,7 @@
|
|||||||
|
# -*- makefile -*-
|
||||||
|
#
|
||||||
|
# $HEADER$
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(top_srcdir)/config/Makefile.options
|
||||||
|
|
@ -5,21 +5,21 @@
|
|||||||
|
|
||||||
include $(top_srcdir)/config/Makefile.options
|
include $(top_srcdir)/config/Makefile.options
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libdatatype.la
|
noinst_LTLIBRARIES = libmpi_datatype.la
|
||||||
|
|
||||||
# Source code files
|
# Source code files
|
||||||
|
|
||||||
headers = \
|
headers = \
|
||||||
datatype.h
|
datatype.h
|
||||||
|
|
||||||
liblfc_la_SOURCES = \
|
libmpi_datatype_la_SOURCES = \
|
||||||
$(headers) \
|
$(headers) \
|
||||||
datatype.c
|
datatype.c
|
||||||
|
|
||||||
# Conditionally install the header files
|
# Conditionally install the header files
|
||||||
|
|
||||||
if WANT_INSTALL_HEADERS
|
if WANT_INSTALL_HEADERS
|
||||||
lamdir = $(includedir)/lam/lam/datatype
|
lamdir = $(includedir)/lam/mpi/datatype
|
||||||
lam_HEADERS = $(headers)
|
lam_HEADERS = $(headers)
|
||||||
else
|
else
|
||||||
lamdir = $(includedir)
|
lamdir = $(includedir)
|
||||||
|
4
src/mpi/interface/.cvsignore
Обычный файл
4
src/mpi/interface/.cvsignore
Обычный файл
@ -0,0 +1,4 @@
|
|||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
*.la
|
||||||
|
.libs
|
@ -23,26 +23,7 @@ endif
|
|||||||
|
|
||||||
SUBDIRS = c cxx f77 f90
|
SUBDIRS = c cxx f77 f90
|
||||||
|
|
||||||
# If the --enable-single-library flag was given to configure, then the
|
noinst_LTLIBRARIES = libmpi_interface.la
|
||||||
# user wants to merge liblam and libmpi into a single big, honkin'
|
|
||||||
# libmpi. So the libmpi in this directory should be a convenience
|
|
||||||
# (noinst) library. Otherwise, it should be installed into lib.
|
|
||||||
|
|
||||||
if WANT_SINGLE_MPI_LIBRARY
|
libmpi_interface_la_SOURCES =
|
||||||
install_lib =
|
libmpi_interface_la_LIBADD = c/libmpi_c.la $(f77_lib) $(f90_lib)
|
||||||
convenience_lib = libmpi_convenience.la
|
|
||||||
else
|
|
||||||
install_lib = libmpi.la
|
|
||||||
convenience_lib =
|
|
||||||
endif
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = $(install_lib)
|
|
||||||
noinst_LTLIBRARIES = $(convenience_lib)
|
|
||||||
|
|
||||||
sources = c/libmpi_c.la $(f77_lib) $(f90_lib)
|
|
||||||
|
|
||||||
libmpi_la_SOURCES =
|
|
||||||
libmpi_la_LIBADD = $(sources)
|
|
||||||
|
|
||||||
libmpi_convenience_la_SOURCES =
|
|
||||||
libmpi_convenience_la_LIBADD = $(sources)
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak PMPI_Alloc_mem = MPI_Alloc_mem
|
#pragma weak PMPI_Alloc_mem = MPI_Alloc_mem
|
||||||
@ -19,7 +19,7 @@ int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
|
|||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
/* Return error on MPI_COMM_WORLD */
|
/* Return error on MPI_COMM_WORLD */
|
||||||
}
|
}
|
||||||
if (baseptr == NULL) {
|
if (NULL == baseptr) {
|
||||||
/* Return error on MPI_COMM_WORLD */
|
/* Return error on MPI_COMM_WORLD */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
#include "lam/util/strncpy.h"
|
#include "lam/util/strncpy.h"
|
||||||
#include "lam/communicator.h"
|
#include "lam/communicator.h"
|
||||||
#include "lam/totalview.h"
|
#include "lam/totalview.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "lam_config.h"
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak PMPI_Finalize = MPI_Finalize
|
#pragma weak PMPI_Finalize = MPI_Finalize
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak PMPI_Free_mem = MPI_Free_mem
|
#pragma weak PMPI_Free_mem = MPI_Free_mem
|
||||||
@ -15,7 +16,7 @@
|
|||||||
|
|
||||||
int MPI_Free_mem(void *baseptr)
|
int MPI_Free_mem(void *baseptr)
|
||||||
{
|
{
|
||||||
if (baseptr == NULL) {
|
if (NULL == baseptr) {
|
||||||
/* Return error on MPI_COMM_WORLD */
|
/* Return error on MPI_COMM_WORLD */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "lam_config.h"
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak PMPI_Init = MPI_Init
|
#pragma weak PMPI_Init = MPI_Init
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/f77/bindings.h"
|
#include "mpi/interface/f77/bindings.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak MPI_ALLOC_MEM = mpi_alloc_mem_f
|
#pragma weak MPI_ALLOC_MEM = mpi_alloc_mem_f
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* Yes, kids, that's one of 8 possible sets of #define's. :-\
|
* Yes, kids, that's one of 8 possible sets of #define's. :-\
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpi/f77/prototypes.h"
|
#include "mpi/interface/f77/prototypes.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
/* If we have weak symbols, then we compile the functions as the
|
/* If we have weak symbols, then we compile the functions as the
|
||||||
@ -27,7 +27,7 @@
|
|||||||
the profiled prototypes are generated with #defines that map
|
the profiled prototypes are generated with #defines that map
|
||||||
mpi->pmpi and MPI->PMPI, which screws up the non-weak-symbols stuff
|
mpi->pmpi and MPI->PMPI, which screws up the non-weak-symbols stuff
|
||||||
(because they have their own #defines). */
|
(because they have their own #defines). */
|
||||||
#include "mpi/f77/profile/prototypes.h"
|
#include "mpi/interface/f77/profile/prototypes.h"
|
||||||
#else
|
#else
|
||||||
/* We don't have weak symbols. */
|
/* We don't have weak symbols. */
|
||||||
#if LAM_PROFILING_DEFINES
|
#if LAM_PROFILING_DEFINES
|
||||||
@ -35,7 +35,7 @@
|
|||||||
LAM_PROFILING_DEFINES will be 1. In this case, get the defines
|
LAM_PROFILING_DEFINES will be 1. In this case, get the defines
|
||||||
mapping from mpi_foo_f to the profiling name in the proper symbol
|
mapping from mpi_foo_f to the profiling name in the proper symbol
|
||||||
convention. */
|
convention. */
|
||||||
#include "mpi/f77/profile/defines.h"
|
#include "mpi/interface/f77/profile/defines.h"
|
||||||
#else
|
#else
|
||||||
/* Otherwise, we're compiling in the main directory, so get the
|
/* Otherwise, we're compiling in the main directory, so get the
|
||||||
defines mapping from mpi_foo_f to the proper symbol convention. */
|
defines mapping from mpi_foo_f to the proper symbol convention. */
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "lam_config.h"
|
#include "lam_config.h"
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/f77/bindings.h"
|
#include "mpi/interface/f77/bindings.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak MPI_COMM_SET_NAME = mpi_comm_set_name_f
|
#pragma weak MPI_COMM_SET_NAME = mpi_comm_set_name_f
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/f77/bindings.h"
|
#include "mpi/interface/f77/bindings.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak MPI_FINALIZE = mpi_finalize_f
|
#pragma weak MPI_FINALIZE = mpi_finalize_f
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/f77/bindings.h"
|
#include "mpi/interface/f77/bindings.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak MPI_FREE_MEM = mpi_free_mem_f
|
#pragma weak MPI_FREE_MEM = mpi_free_mem_f
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/f77/bindings.h"
|
#include "mpi/interface/f77/bindings.h"
|
||||||
|
|
||||||
#if LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS
|
||||||
#pragma weak MPI_INIT = mpi_init_f
|
#pragma weak MPI_INIT = mpi_init_f
|
||||||
|
@ -49,6 +49,6 @@
|
|||||||
/*
|
/*
|
||||||
* Now include the real prototypes. Magic. :-)
|
* Now include the real prototypes. Magic. :-)
|
||||||
*/
|
*/
|
||||||
#include "mpi/f77/prototypes.h"
|
#include "mpi/interface/f77/prototypes.h"
|
||||||
|
|
||||||
#endif /* LAM_F77_PROTOTYPES_PROFILING_H */
|
#endif /* LAM_F77_PROTOTYPES_PROFILING_H */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user