Skip to content

Commit

Permalink
there is currently no standard quad-precision type in MPI, so don't a…
Browse files Browse the repository at this point in the history
…llow MPI support to be compiled with --enable-quad-precision

[empty commit message]
  • Loading branch information
stevengj committed Jun 19, 2011
1 parent 3406799 commit a6142f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ dnl -----------------------------------------------------------------------
AC_ARG_ENABLE(mpi, [AC_HELP_STRING([--enable-mpi],[compile FFTW MPI library])], enable_mpi=$enableval, enable_mpi=no)

if test "$enable_mpi" = "yes"; then
if test $PRECISION = q; then
AC_MSG_ERROR([quad precision is not supported in MPI])
fi
ACX_MPI([],[AC_MSG_ERROR([could not find mpi library for --enable-mpi])])
AC_CHECK_PROG(MPIRUN, mpirun, mpirun)
AC_SUBST(MPIRUN)
Expand Down
2 changes: 2 additions & 0 deletions mpi/ifftw-mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
# define FFTW_MPI_TYPE MPI_FLOAT
#elif defined(FFTW_LDOUBLE)
# define FFTW_MPI_TYPE MPI_LONG_DOUBLE
#elif defined(FFTW_QUAD)
# error MPI quad-precision type is unknown
#else
# define FFTW_MPI_TYPE MPI_DOUBLE
#endif
Expand Down
2 changes: 2 additions & 0 deletions mpi/mpi-bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# define BENCH_MPI_TYPE MPI_FLOAT
#elif defined(BENCHFFT_LDOUBLE)
# define BENCH_MPI_TYPE MPI_LONG_DOUBLE
#elif defined(BENCHFFT_QUAD)
# error MPI quad-precision type is unknown
#else
# define BENCH_MPI_TYPE MPI_DOUBLE
#endif
Expand Down

0 comments on commit a6142f7

Please sign in to comment.