瀏覽代碼

tests|examples/Makefile.am: fix how to run tests and examples

Nathalie Furmento 8 年之前
父節點
當前提交
a2a9129d75
共有 2 個文件被更改,包括 15 次插入9 次删除
  1. 9 6
      examples/Makefile.am
  2. 6 3
      tests/Makefile.am

+ 9 - 6
examples/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2009-2017  Université de Bordeaux
-# Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
+# Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017  CNRS
 # Copyright (C) 2011  Télécom-SudParis
 # Copyright (C) 2011-2012  INRIA
 # Copyright (C) 2015-2016  Inria
@@ -78,7 +78,7 @@ EXTRA_DIST = 					\
 	scheduler/schedulers_context.sh			\
 	fortran/Makefile				\
 	sched_ctx/axpy_partition_gpu.h				\
-	sched_ctx/axpy_partition_gpu.cu		
+	sched_ctx/axpy_partition_gpu.cu
 
 
 CLEANFILES = *.gcno *.gcda *.linkinfo *.mod starpu_idle_microsec.log
@@ -145,7 +145,7 @@ noinst_HEADERS = 				\
 	pi/SobolQRNG/sobol_primitives.h         \
 	reductions/dot_product.h                \
 	basic_examples/vector_scal_cpu_template.h \
-	sched_ctx/axpy_partition_gpu.h				
+	sched_ctx/axpy_partition_gpu.h
 
 #####################################
 # What to install and what to check #
@@ -179,14 +179,17 @@ LOADER_BIN		=	$(top_builddir)/examples/loader-cross.sh
 endif
 
 if STARPU_USE_MPI_MASTER_SLAVE
-MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
+MPI 			= $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
+LOADER_BIN2		= $(MPI) $(LOADER_BIN)
+else
+LOADER_BIN2		= $(LOADER_BIN)
 endif
 
 if STARPU_HAVE_AM111
 TESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
-LOG_COMPILER		=	$(MPI) $(LOADER_BIN)
+LOG_COMPILER		=	$(LOADER_BIN2)
 else
-TESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(MPI) $(LOADER_BIN)
+TESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN2)
 endif
 
 endif

+ 6 - 3
tests/Makefile.am

@@ -111,14 +111,17 @@ LOADER_BIN		=	$(top_builddir)/tests/loader-cross.sh
 endif
 
 if STARPU_USE_MPI_MASTER_SLAVE
-MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
+MPI 			= $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
+LOADER_BIN2		= $(MPI) $(LOADER_BIN)
+else
+LOADER_BIN2		= $(LOADER_BIN)
 endif
 
 if STARPU_HAVE_AM111
 TESTS_ENVIRONMENT   =   top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
-LOG_COMPILER        =   $(MPI) $(LOADER_BIN)
+LOG_COMPILER        =   $(LOADER_BIN2)
 else
-TESTS_ENVIRONMENT   =   top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(MPI) $(LOADER_BIN)
+TESTS_ENVIRONMENT   =   top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN2)
 endif
 endif