Don't add external declarations for the PMPI_W{TICK,TIME} functions
if profiling isn't enabled. It appers that some compilers (g95) will try to resolve the symbols if they are prototyped. This commit was SVN r8110.
Этот коммит содержится в:
родитель
5fa34df9ce
Коммит
660d2f61b6
@ -194,10 +194,13 @@ AC_ARG_ENABLE(mpi-profile,
|
|||||||
if test "$enable_mpi_profile" != "no"; then
|
if test "$enable_mpi_profile" != "no"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
WANT_MPI_PROFILING=1
|
WANT_MPI_PROFILING=1
|
||||||
|
MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
WANT_MPI_PROFILING=0
|
WANT_MPI_PROFILING=0
|
||||||
|
MPIF_H_PMPI_W_FUNCS=
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(MPIF_H_PMPI_W_FUNCS)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -446,5 +446,5 @@
|
|||||||
!
|
!
|
||||||
! double precision functions
|
! double precision functions
|
||||||
!
|
!
|
||||||
double precision MPI_WTIME, MPI_WTICK, PMPI_WTIME, PMPI_WTICK
|
double precision MPI_WTIME, MPI_WTICK @MPIF_H_PMPI_W_FUNCS@
|
||||||
external MPI_WTIME, MPI_WTICK, PMPI_WTIME, PMPI_WTICK
|
external MPI_WTIME, MPI_WTICK @MPIF_H_PMPI_W_FUNCS@
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user