Commit 2750b2f3 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Do not run MPI programs (tests) when MPI_LAUNCH command is not available.

parent ed153808
......@@ -8,20 +8,47 @@ PPFCCOMPILE = $(FC) $(FCDEFS) $(DEFAULT_INCLUDES) $(FCCPPFLAGS) $(AM_FCFLAGS) $(
LDADD = $(top_builddir)/src/libsct.la
check_PROGRAMS = test_precision
check_PROGRAMS =
if MPI
if MPICHECK
check_PROGRAMS += test_precision
endif
else
check_PROGRAMS += test_precision
endif
if FORTRAN_INTERFACE
if MPI
if MPICHECK
check_PROGRAMS += test_sct
endif
else
check_PROGRAMS += test_sct
endif
endif
if HDF5
if MPI
if MPICHECK
check_PROGRAMS += test_hdf5
check_PROGRAMS += test_hdf5_fortran
endif
else
check_PROGRAMS += test_hdf5
check_PROGRAMS += test_hdf5_fortran
endif
LDADD += $(LTLIBHDF5)
endif
if PAPI
if MPI
if MPICHECK
check_PROGRAMS += test_papi
endif
else
check_PROGRAMS += test_papi
endif
LDADD += $(LTLIBPAPI)
endif
......@@ -57,20 +84,41 @@ test_sct_SOURCES = test_sct.f90
AM_COLOR_TESTS=yes
TESTS = test_precision_run
TESTS =
if MPI
if MPICHECK
TESTS += test_precision_run
endif
else
TESTS += test_precision_run
endif
if FORTRAN_INTERFACE
if MPI
if MPICHECK
TESTS += test_sct_run
endif
else
TESTS += test_sct_run
endif
endif
if PAPI
TESTS += test_papi_run
endif
if HDF5
if MPI
if MPICHECK
TESTS += test_hdf5_run
TESTS += test_hdf5_fortran_run
endif
else
TESTS += test_hdf5_run
TESTS += test_hdf5_fortran_run
endif
endif
if !MPI
if !OPENMP
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment