Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
rosinski committed Nov 1, 2004
1 parent faefb39 commit c302f79
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 27 deletions.
26 changes: 20 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@ if test "$F77" = xlf90_r ; then
fi

dnl Whether and how to enable threading
THREADDEFS=""
THREADFLAGS=""
FTHREADFLAGS=""
AC_ARG_ENABLE(openmp,[--enable-openmp],UD_SET_OMP_C,)
if test "$OMP" = YES ; then
THREADDEFS="$OMPDEFS"
THREADFLAGS="$OMPCFLAGS"
UD_SET_OMP_F77
FTHREADFLAGS="$OMPFFLAGS"
else
AC_ARG_ENABLE(pthreads,[--enable-pthreads],UD_SET_PTHREADS_C,)
if test "$PTHREADS" = YES ; then
THREADDEFS="$PTHREADDEFS"
THREADFLAGS="$PTHREADCFLAGS"
UD_SET_PTHREADS_F77
FTHREADFLAGS="$PTHREADFFLAGS"
fi
fi

dnl OMPDEFS, OMPCFLAGS
UD_SET_OMP_C
dnl PTHREADDEFS, PTHREADCFLAGS
Expand Down Expand Up @@ -157,16 +176,11 @@ AC_CHECK_FUNCS(gettimeofday)
AC_SUBST(FDEFS)
AC_SUBST(THREADDEFS)
AC_SUBST(THREADFLAGS)
AC_SUBST(FTHREADFLAGS)
AC_SUBST(PAPIPREP)
AC_SUBST(PAPIOBJS)
AC_SUBST(ARFLAGS)
AC_SUBST(BITFLAGS)
AC_SUBST(FORTDEFS)
dnl for tests directory
AC_SUBST(OMPDEFS)
AC_SUBST(OMPCFLAGS)
AC_SUBST(OMPFFLAGS)
AC_SUBST(PTHREADDEFS)
AC_SUBST(PTHTEADCFLAGS)

AC_OUTPUT(Makefile tests/Makefile)
25 changes: 4 additions & 21 deletions tests/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
CC = @CC@
CFLAGS = @CFLAGS@ @PAPIPREP@ @BITFLAGS@
THREADFLAGS = @OMPCFLAGS@ @OMPDEFS@
LDFLAGS = @OMPCFLAGS@ @CFLAGS@ @THREADFLAGS@ @BITFLAGS@ -L.. -lgpt @LDFLAGS@ @LIBS@
CFLAGS = @PAPIPREP@ @THREADDEFS@ @CFLAGS@ @BITFLAGS@ @THREADFLAGS@
LDFLAGS = @CFLAGS@ @BITFLAGS@ @THREADFLAGS@ -L.. -lgpt @LDFLAGS@ @LIBS@

FC = @F77@
FFLAGS = @FFLAGS@ @PAPIPREP@ @BITFLAGS@ @FORTDEFS@
OMPFFLAGS = @OMPFFLAGS@
FLDFLAGS = @OMPFFLAGS@ @BITFLAGS@ -L.. -lgpt @LDFLAGS@ @LIBS@
FFLAGS = @PAPIPREP@ @FORTDEFS@ @FFLAGS@ @BITFLAGS@ @FTHREADFLAGS@
FLDFLAGS = @FFLAGS@ @BITFLAGS@ @FTHREADFLAGS@ -L.. -lgpt @LDFLAGS@ @LIBS@

COBJS = llcost.o depth.o overhead.o
CEXES = llcost depth overhead
Expand All @@ -31,36 +29,21 @@ depth: depth.o

overhead: overhead.o
$(CC) -o $@ overhead.o $(LDFLAGS)
overhead.o: overhead.c
$(CC) -c $(CFLAGS) $(THREADFLAGS) $<

flopsperclock: flopsperclock.o
$(FC) -o $@ flopsperclock.o $(FLDFLAGS)
flopsperclock.o: flopsperclock.F
$(FC) -c $(FFLAGS) $<

omptest: omptest.o
$(FC) -o $@ omptest.o $(FLDFLAGS)
omptest.o: omptest.F
$(FC) -c $(FFLAGS) $(OMPFFLAGS) $<

errtest: errtest.o
$(FC) -o $@ errtest.o $(FLDFLAGS)
errtest.o: errtest.F
$(FC) -c $(FFLAGS) $<

opscost: opscost.o
$(FC) -o $@ opscost.o $(FLDFLAGS)
opscost.o: opscost.F
$(FC) -c $(FFLAGS) $<

hashtest: hashtest.o
$(FC) -o $@ hashtest.o $(FLDFLAGS)
hashtest.o: hashtest.F
$(FC) -c $(FFLAGS) $<

papitest: papitest.o
$(FC) -o $@ papitest.o $(FLDFLAGS)
papitest.o: papitest.F
$(FC) -c $(FFLAGS) $(OMPFFLAGS) $<

0 comments on commit c302f79

Please sign in to comment.