Explorar o código

Get rid of mpi/examples/Makefile.am to avoid a dependency issue.

Cédric Augonnet %!s(int64=15) %!d(string=hai) anos
pai
achega
b3caf41960
Modificáronse 3 ficheiros con 45 adicións e 72 borrados
  1. 0 1
      configure.ac
  2. 45 5
      mpi/Makefile.am
  3. 0 66
      mpi/examples/Makefile.am

+ 0 - 1
configure.ac

@@ -667,5 +667,4 @@ AC_OUTPUT([
 	tests/Makefile
 	doc/Makefile
 	mpi/Makefile
-	mpi/examples/Makefile
 ])

+ 45 - 5
mpi/Makefile.am

@@ -14,10 +14,21 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 #
 
-SUBDIRS = examples
-
 CC=$(MPICC)
 
+TESTS = $(check_PROGRAMS)
+
+check_PROGRAMS =
+
+BUILT_SOURCES =
+
+CLEANFILES = *.gcno *.gcda *.linkinfo
+
+examplebindir = $(libdir)/starpu/mpi/examples/
+mpiexamplebindir=$(libdir)/starpu/mpi/
+
+examplebin_PROGRAMS =
+
 if USE_CUDA
 # TODO define NVCCFLAGS
 NVCC ?= nvcc
@@ -30,9 +41,8 @@ NVCC ?= nvcc
 	$(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing  $(NVCCFLAGS) -I$(top_srcdir)/include/
 endif
 
-
 LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
-AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/mpi/ -I$(top_srcdir)/src/
+AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/mpi/ -I$(top_srcdir)/src/  -I$(top_srcdir)/examples/
 
 lib_LTLIBRARIES = libstarpumpi.la
 
@@ -50,7 +60,37 @@ libstarpumpi_la_SOURCES =				\
 	starpu_mpi_helper.c				\
 	starpu_mpi_datatype.c
 
-mpiexamplebindir=$(libdir)/starpu/mpi/
+
+##################
+# MPI LU example #
+##################
+
+if !NO_BLAS_LIB
+
+examplebin_PROGRAMS += 				\
+	examples/mpi_lu/plu_example_float	\
+	examples/mpi_lu/plu_example_double
+
+examples_mpi_lu_plu_example_float_LDADD =	\
+	libstarpumpi.la
+
+examples_mpi_lu_plu_example_float_SOURCES =	\
+	examples/mpi_lu/plu_example_float.c	\
+	examples/mpi_lu/plu_solve_float.c	\
+	examples/mpi_lu/pslu_kernels.c		\
+	examples/mpi_lu/pslu.c			\
+	$(top_srcdir)/examples/common/blas.c
+
+examples_mpi_lu_plu_example_double_LDADD =	\
+	libstarpumpi.la
+
+examples_mpi_lu_plu_example_double_SOURCES =	\
+	examples/mpi_lu/plu_example_double.c	\
+	examples/mpi_lu/plu_solve_double.c  	\
+	examples/mpi_lu/pdlu_kernels.c	    	\
+	examples/mpi_lu/pdlu.c		    	\
+	$(top_srcdir)/examples/common/blas.c
+endif
 
 mpiexamplebin_PROGRAMS =				\
 	tests/pingpong					\

+ 0 - 66
mpi/examples/Makefile.am

@@ -1,66 +0,0 @@
-#
-# StarPU
-# Copyright (C) INRIA 2008-2009 (see AUTHORS file)
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-#
-# See the GNU Lesser General Public License in COPYING.LGPL for more details.
-#
-
-CC=$(MPICC)
-
-LIBS = $(top_builddir)/src/libstarpu.la $(top_builddir)/mpi/libstarpumpi.la @LIBS@
-AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include  -I$(top_srcdir)/mpi/
-
-TESTS = $(check_PROGRAMS)
-
-check_PROGRAMS =
-
-BUILT_SOURCES =
-
-CLEANFILES = *.gcno *.gcda *.linkinfo
-
-if USE_CUDA
-
-# TODO define NVCCFLAGS
-NVCC ?= nvcc
-
-.cu.o:
-	$(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing  $(NVCCFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/
-endif
-
-examplebindir = $(libdir)/starpu/mpi/examples/
-
-examplebin_PROGRAMS =
-
-##################
-# MPI LU example #
-##################
-
-if !NO_BLAS_LIB
-
-examplebin_PROGRAMS += 				\
-	mpi_lu/plu_example_float		\
-	mpi_lu/plu_example_double
-
-mpi_lu_plu_example_float_SOURCES =		\
-	mpi_lu/plu_example_float.c		\
-	mpi_lu/plu_solve_float.c		\
-	mpi_lu/pslu_kernels.c			\
-	mpi_lu/pslu.c				\
-	$(top_srcdir)/examples/common/blas.c
-
-mpi_lu_plu_example_double_SOURCES =		\
-	mpi_lu/plu_example_double.c		\
-	mpi_lu/plu_solve_double.c		\
-	mpi_lu/pdlu_kernels.c			\
-	mpi_lu/pdlu.c				\
-	$(top_srcdir)/examples/common/blas.c
-endif