Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
rosinski committed Jan 1, 2007
1 parent 5783903 commit d97182b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
17 changes: 14 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-bit64 Build 64 bit library
--enable-clock_gettime Check for clock_gettime in -lrt
--enable-mpi Check for MPI_Wtime in -lmpi and -lmpich
--enable-debug Enable debugging
--enable-nanotime Replace gettimeofday with native IA32 or IA64
--enable-opt Optimize for speed
Expand Down Expand Up @@ -2138,7 +2140,7 @@ fi
# Provide some information about the compiler.
echo "$as_me:2141:" \
echo "$as_me:2143:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Expand Down Expand Up @@ -2493,6 +2495,9 @@ fi
fi
# Check whether --enable-clock_gettime or --disable-clock_gettime was given.
if test "${enable_clock_gettime+set}" = set; then
enableval="$enable_clock_gettime"
echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
Expand Down Expand Up @@ -2567,6 +2572,11 @@ _ACEOF
fi
fi;
# Check whether --enable-mpi or --disable-mpi was given.
if test "${enable_mpi+set}" = set; then
enableval="$enable_mpi"
echo "$as_me:$LINENO: checking for MPI_Wtime in -lmpi" >&5
echo $ECHO_N "checking for MPI_Wtime in -lmpi... $ECHO_C" >&6
Expand Down Expand Up @@ -2716,6 +2726,7 @@ fi
fi
fi;
for ac_func in gettimeofday times
Expand Down Expand Up @@ -3445,7 +3456,7 @@ _ACEOF
# flags.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS $ac_verb"
(eval echo $as_me:3448: \"$ac_link\") >&5
(eval echo $as_me:3459: \"$ac_link\") >&5
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
echo "$ac_f77_v_output" >&5
FFLAGS=$ac_save_FFLAGS
Expand Down Expand Up @@ -3523,7 +3534,7 @@ _ACEOF
# flags.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
(eval echo $as_me:3526: \"$ac_link\") >&5
(eval echo $as_me:3537: \"$ac_link\") >&5
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
echo "$ac_f77_v_output" >&5
FFLAGS=$ac_save_FFLAGS
Expand Down
11 changes: 8 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ dnl will add -lpapi or -lpapi64 if successful
fi

dnl Check for various underlying timing routines
AC_CHECK_LIB(rt, clock_gettime)
AC_CHECK_LIB(mpi, MPI_Wtime,,
AC_CHECK_LIB(mpich, MPI_Wtime,,))
AC_ARG_ENABLE(clock_gettime,
[--enable-clock_gettime Check for clock_gettime in -lrt],
AC_CHECK_LIB(rt, clock_gettime),)

AC_ARG_ENABLE(mpi,
[--enable-mpi Check for MPI_Wtime in -lmpi and -lmpich],
AC_CHECK_LIB(mpi, MPI_Wtime,,
AC_CHECK_LIB(mpich, MPI_Wtime)),)
AC_CHECK_FUNCS(gettimeofday times,,)

dnl One of the Fortran tests has ifdef AIX and defines are funky on AIX Fortran
Expand Down
2 changes: 1 addition & 1 deletion ctests/cygprofile.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main (int argc, char **argv)
if (argc == 2) {
niter = atoi (argv[1]);
} else if (argc > 2) {
printf ("Usage: %s loop_length\n");
printf ("Usage: %s loop_length\n", argv[0]);
}
printf ("Using %d iterations\n", niter);

Expand Down
2 changes: 1 addition & 1 deletion ctests/papiomptest.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main (int argc, char **argv)
if (GPTLinitialize () < 0)
exit (4);

#pragma omp parallel for private (iter, zero)
#pragma omp parallel for private (iter, zero, ret)

for (iter = 1; iter <= nompiter; iter++) {
ret = add (looplen, &zero);
Expand Down

0 comments on commit d97182b

Please sign in to comment.