Skip to content

Commit

Permalink
make: fix variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed May 29, 2024
1 parent cdd28ab commit 38abdf0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions examples/stencil/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StarPU --- Runtime system for heterogeneous multicore architectures.
#
# Copyright (C) 2010-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
# Copyright (C) 2010-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
#
# StarPU is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -30,8 +30,6 @@ LIBS += $(STARPU_EXPORTED_LIBS)
if STARPU_USE_MPI
LIBS += $(top_builddir)/mpi/src/libstarpumpi-@[email protected]
AM_CPPFLAGS += -I$(top_srcdir)/mpi/include
LAUNCHER = $(STARPU_MPIEXEC)
LAUNCHER_ENV = $(MPI_RUN_ENV)
if STARPU_SIMGRID
NVCCFLAGS += --compiler-options -fPIC
endif
Expand Down
12 changes: 9 additions & 3 deletions make/starpu-tests.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StarPU --- Runtime system for heterogeneous multicore architectures.
#
# Copyright (C) 2016-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
# Copyright (C) 2016-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
#
# StarPU is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Expand All @@ -14,8 +14,6 @@
# See the GNU Lesser General Public License in COPYING.LGPL for more details.
#

LAUNCHER_ENV =
LAUNCHER =
include $(top_srcdir)/make/starpu.mk

STARPU_MPI_NP ?= 4
Expand All @@ -28,6 +26,14 @@ else
STARPU_MPIEXEC = $(MPIEXEC) $(MPIEXEC_ARGS) -np $(STARPU_MPI_NP)
endif

if STARPU_USE_MPI
LAUNCHER = $(STARPU_MPIEXEC)
LAUNCHER_ENV = $(MPI_RUN_ENV)
else
LAUNCHER_ENV =
LAUNCHER =
endif

showcheckfailed:
@ for x in $(shell grep -l "^FAIL " $(TEST_LOGS) /dev/null 2>/dev/null) ; do cat $$x ; done
@RET=0 ; \
Expand Down
5 changes: 1 addition & 4 deletions mpi/examples/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StarPU --- Runtime system for heterogeneous multicore architectures.
#
# Copyright (C) 2009-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
# Copyright (C) 2009-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
# Copyright (C) 2013 Thibaut Lambert
#
# StarPU is free software; you can redistribute it and/or modify
Expand All @@ -23,9 +23,6 @@ FCLD=$(MPIFORT)

include $(top_srcdir)/make/starpu-loader.mk

LAUNCHER = $(STARPU_MPIEXEC)
LAUNCHER_ENV = $(MPI_RUN_ENV)

if STARPU_SIMGRID
LOADER_BIN = $(LAUNCHER)
endif
Expand Down
3 changes: 0 additions & 3 deletions mpi/tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ CCLD=$(MPICC)

include $(top_srcdir)/make/starpu-loader.mk

LAUNCHER = $(STARPU_MPIEXEC)
LAUNCHER_ENV = $(MPI_RUN_ENV)

if STARPU_SIMGRID
LOADER_BIN = $(LAUNCHER)
endif
Expand Down

0 comments on commit 38abdf0

Please sign in to comment.