From b11a442008af5a25ca529f73b677d1f5afe4b79f Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 17 Jun 2004 21:01:47 +0000 Subject: [PATCH] First cut at skeleton gm ptl component This commit was SVN r1387. --- src/mca/ptl/gm/.ompi_ignore | 0 src/mca/ptl/gm/Makefile.am | 28 ++++++++++++++++++++ src/mca/ptl/gm/VERSION | 6 +++++ src/mca/ptl/gm/configure.params | 10 +++++++ src/mca/ptl/gm/configure.stub | 47 +++++++++++++++++++++++++++++++++ src/mca/ptl/gm/ptl_gm.c | 1 + 6 files changed, 92 insertions(+) create mode 100644 src/mca/ptl/gm/.ompi_ignore create mode 100644 src/mca/ptl/gm/Makefile.am create mode 100644 src/mca/ptl/gm/VERSION create mode 100644 src/mca/ptl/gm/configure.params create mode 100644 src/mca/ptl/gm/configure.stub create mode 100644 src/mca/ptl/gm/ptl_gm.c diff --git a/src/mca/ptl/gm/.ompi_ignore b/src/mca/ptl/gm/.ompi_ignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/mca/ptl/gm/Makefile.am b/src/mca/ptl/gm/Makefile.am new file mode 100644 index 0000000000..e96c51111f --- /dev/null +++ b/src/mca/ptl/gm/Makefile.am @@ -0,0 +1,28 @@ +# -*- makefile -*- +# +# $HEADER$ +# + +include $(top_ompi_srcdir)/config/Makefile.options + +sources = \ + ptl_gm.c + +if OMPI_BUILD_ptl_gm_LOADABLE_MODULE +module_noinst = +module_install = mca_ptl_gm.la +else +module_noinst = libmca_ptl_gm.la +module_install = +endif + +mcamoduledir = $(libdir)/openmpi +mcamodule_LTLIBRARIES = $(module_install) +mca_ptl_gm_la_SOURCES = $(sources) +mca_ptl_gm_la_LIBADD = $(LIBOMPI_LA) +mca_ptl_gm_la_LDFLAGS = -module -avoid-version + +noinst_LTLIBRARIES = $(module_noinst) +libmca_ptl_gm_la_SOURCES = $(sources) +libmca_ptl_gm_la_LDFLAGS = -module -avoid-version + diff --git a/src/mca/ptl/gm/VERSION b/src/mca/ptl/gm/VERSION new file mode 100644 index 0000000000..dadc1f42ab --- /dev/null +++ b/src/mca/ptl/gm/VERSION @@ -0,0 +1,6 @@ +major=1 +minor=0 +release=0 +alpha=0 +beta=0 +svn=1 diff --git a/src/mca/ptl/gm/configure.params b/src/mca/ptl/gm/configure.params new file mode 100644 index 0000000000..9cd30f30a6 --- /dev/null +++ b/src/mca/ptl/gm/configure.params @@ -0,0 +1,10 @@ +# -*- shell-script -*- +# +# $HEADER$ +# + +# Specific to this module + +PARAM_INIT_FILE=src/ptl_gm.c +PARAM_CONFIG_HEADER_FILE="gm_config.h" +PARAM_CONFIG_FILES="Makefile" diff --git a/src/mca/ptl/gm/configure.stub b/src/mca/ptl/gm/configure.stub new file mode 100644 index 0000000000..16823e331a --- /dev/null +++ b/src/mca/ptl/gm/configure.stub @@ -0,0 +1,47 @@ +# -*- shell-script -*- +# +# $HEADER$ +# + +# +# Main function. This will be invoked in the middle of the templated +# configure script. +# +AC_DEFUN([MCA_CONFIGURE_STUB],[ +# +# gm ptl configure.stub +# + +# +# ...do whatever you need to do here, like look for the Elan4 +# libraries and header files. Built-in tests such as AC_CHECK_LIBS +# and AC_CHECK_HEADERS may be useful here. See the Autoconf docs ... +# +echo "Hello from gm configure.stub:MCA-CONFIGURE-STUB!" + +# +# done with gm ptl configure.stub +# +])dnl + + +# +# Since MCA_CONFIGURE_STUB is not invoked when we are configured with +# --enable dist, we provide this alternate macro is that invoked +# instead. Not all modules will need this -- probably only modules +# thaty use AM_CONDITIONALS will require doing anything here. If you +# don't need it, you can remove this whole AC_DEFUN. +# +AC_DEFUN([MCA_CONFIGURE_DIST_STUB],[ +# +# gm ptl configure-dist.stub +# + +# ...probably only need this if have AM_CONDITIONALs in the +# MCA_CONFIGURE_STUB. +echo "Hello from gm configure.stub:MCA-CONFIGURE-DIST-STUB!" + +# +# done with gm ptl configure-dist.stub +# +])dnl diff --git a/src/mca/ptl/gm/ptl_gm.c b/src/mca/ptl/gm/ptl_gm.c new file mode 100644 index 0000000000..19547e3176 --- /dev/null +++ b/src/mca/ptl/gm/ptl_gm.c @@ -0,0 +1 @@ +/* This is the gm component */