Browse Source

Fix building stencil against mpi

Samuel Thibault 15 years ago
parent
commit
686c611e52
2 changed files with 7 additions and 0 deletions
  1. 5 0
      examples/stencil/Makefile.am
  2. 2 0
      include/starpu_config.h.in

+ 5 - 0
examples/stencil/Makefile.am

@@ -18,6 +18,11 @@ AM_CFLAGS = $(HWLOC_CFLAGS)
 LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
 AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
 
+if USE_MPI
+LIBS += $(top_builddir)/mpi/libstarpumpi.la
+AM_CPPFLAGS += -I$(top_srcdir)/mpi/
+endif
+
 CC = $(CC_OR_MPICC)
 
 if STARPU_USE_CUDA

+ 2 - 0
include/starpu_config.h.in

@@ -6,6 +6,8 @@
 #undef STARPU_USE_OPENCL
 #undef STARPU_USE_GORDON
 
+#undef STARPU_USE_MPI
+
 #undef STARPU_ATLAS
 #undef STARPU_GOTO
 #undef STARPU_SYSTEM_BLAS