This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
DTIME/ETIME problems under G77
- To: G77 Bug Reports <egcs-bugs at egcs dot cygnus dot com>
- Subject: DTIME/ETIME problems under G77
- From: "William A. Mahaffey III" <wam at HiWAAY dot net>
- Date: Sat, 08 Jan 2000 16:42:56 -0600
- Organization: C.F.D. Inc.
Sir/Ma'am:
This note is submitted to clarify some points in my last E-Mail, which
I hope you already have. The last message had attached a Makefile which
showed (correctly) a reference to a dtime_ routine which I wrote to try
to get around the improperly functioning DTIME/ETIME system routines. To
clarify that the system routines are indeed malfunctioning, I deleted my
routine, modified my Makefile, recompiled & re-executed to properly
duplicate the malfunction I reported. Attached please find the Makefile,
output from the make process (MLIST), G77 version info (VLIST), and
output from program execution showing NULL output from DTIME (LIST). I
apologize for any confusion my earlier message may have caused & look
forward to your response. Thanks in advance for your time.
Bill Mahaffey
SHELL = /bin/csh -f
NAME = Vector_Exe
EXE = ~/bin/$(NAME)
INDIGO = /indigo/usr/people/wam/Cnx/benchmark/flex
# VPATH = $(INDIGO)/Vector
vpath %.c $(INDIGO)/Vector
vpath %.f $(INDIGO)/Vector
CSRC = Main.c Work.c dtime.c
CSRC = Main.c Work.c
COBJS = $(CSRC:.c=.o)
CFLAGS = -O2 -DUNDER_SCORE_SYS
FSRC = junk.f
FOBJS = $(FSRC:.f=.o)
FFLAGS = -O2 -extend_source
OBJS = $(COBJS) $(FOBJS)
all:
@cd objs; make -f ../Makefile $(EXE)
force:
@\rm -f objs/*.o; make
$(EXE): $(OBJS)
cc -o $@ $(OBJS) -lg2c -lm
@echo $(EXE) up to date.
.f.o:
f77 -c $(FFLAGS) $^
## @mv $*.o objs
.c.o:
cc -c $(CFLAGS) $^
## @mv $*.o objs
make[1]: Entering directory `/home/wam/benchmark/Vector'
make[2]: Entering directory `/home/wam/benchmark/Vector/objs'
cc -c -O2 -DUNDER_SCORE_SYS /indigo/usr/people/wam/Cnx/benchmark/flex/Vector/Main.c
cc -c -O2 -DUNDER_SCORE_SYS /indigo/usr/people/wam/Cnx/benchmark/flex/Vector/Work.c
f77 -c -O2 -extend_source /indigo/usr/people/wam/Cnx/benchmark/flex/Vector/junk.f
cc -o /home/wam/bin/Vector_Exe Main.o Work.o junk.o -lg2c -lm
/home/wam/bin/Vector_Exe up to date.
make[2]: Leaving directory `/home/wam/benchmark/Vector/objs'
make[1]: Leaving directory `/home/wam/benchmark/Vector'
0.99user 0.06system 0:01.07elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (72791major+36926minor)pagefaults 0swaps
g77 version egcs-2.91.60 19981201 (egcs-1.1.1 release) (from FSF-g77 version 0.5.24-19980804)
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
/usr/lib/gcc-lib/i386-linux/egcs-2.91.60/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN -traditional -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ /dev/null /dev/null
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-linux/egcs-2.91.60/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-linux/egcs-2.91.60/f771 -fnull-version -quiet -dumpbase g77-version.f -version -fversion -o /tmp/ccLtB4zu.s /dev/null
GNU F77 version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386-linux) compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
GNU Fortran Front End version 0.5.24-19980804
/usr/i386-linux/bin/as -V -Qy -o /tmp/ccCtCwCQ.o /tmp/ccLtB4zu.s
GNU assembler version 2.9.1 (i386-linux), using BFD version 2.9.1.0.21
/usr/i386-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o /tmp/ccl7nJsd /tmp/ccCtCwCQ.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/crtbegin.o -L/usr/lib/gcc-lib/i386-linux/egcs-2.91.60 -L/usr/i386-linux/lib -lg2c -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-linux/egcs-2.91.60/crtend.o /usr/lib/crtn.o
/tmp/ccCtCwCQ.o: In function `MAIN__':
/tmp/ccCtCwCQ.o(.text+0x4): undefined reference to `g77__fvers__'
/tmp/ccCtCwCQ.o(.text+0x9): undefined reference to `g77__ivers__'
/tmp/ccCtCwCQ.o(.text+0xe): undefined reference to `g77__uvers__'
Beginning background Vector_Exe
Initiated at 05:33:28 PM CST on Saturday, January 8, 2000
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 10000, 0.040 MW of double memory allocated (0.305 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 10000, 0.02 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 10000, 0.080 MW of float memory allocated (0.305 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 10000, 0.100 MW of float memory allocated (0.381 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 10000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 0.000, 0.000, 0.000 inf
C, 3-D : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D nan %
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 30000, 0.120 MW of double memory allocated (0.916 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 30000, 0.06 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 30000, 0.240 MW of float memory allocated (0.916 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 30000, 0.300 MW of float memory allocated (1.144 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 30000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 0.000, 0.000, 0.000 inf
C, 3-D : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D nan %
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 100000, 0.400 MW of double memory allocated (3.052 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 100000, 0.20 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 100000, 0.800 MW of float memory allocated (3.052 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 100000, 1.000 MW of float memory allocated (3.815 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 100000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 0.000, 0.000, 0.000 inf
C, 3-D : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D nan %
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 300000, 1.200 MW of double memory allocated (9.155 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 300000, 0.60 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 300000, 2.400 MW of float memory allocated (9.155 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 300000, 3.000 MW of float memory allocated (11.444 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 300000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 0.000, 0.000, 0.000 inf
C, 3-D : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D nan %
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 1000000, 4.000 MW of double memory allocated (30.518 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 1000000, 2.00 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 1000000, 8.000 MW of float memory allocated (30.518 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 1000000, 10.000 MW of float memory allocated (38.147 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 1000000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 0.000, 0.000, 0.000 inf
C, 3-D : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D nan %
*************************************************************************************
Past 1st AllocObj's, Id 12586242, N 3000000, 12.000 MW of double memory allocated (91.553 MB), Past flop4_, Past flop8_, Past Flop4, Past Flop8
Benchmark results for N 3000000, 6.00 MFLOPS :
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 32 bit : 0.000, 0.000, 0.000 inf
FORTRAN, 64 bit : 0.000, 0.000, 0.000 inf
C, 32 bit : 0.000, 0.000, 0.000 inf
C, 64 bit : 0.000, 0.000, 0.000 inf
CPU-Time-based Speed-up, Traditional, FORTRAN/C, 32 bit nan %, 64 bit nan %
Past 2nd AllocObj's, Id 12586242, N 3000000, 24.000 MW of float memory allocated (91.553 MB), Past resdl2d_, Past Resdl2D
Past 3rd AllocObj's, Id 12586242, N 3000000, 30.000 MW of float memory allocated (114.441 MB), Past resdl3d_, Past Resdl3D
Benchmark results for N 3000000, 32-bit Residual Calculation:
Time used : Total Cpu Sys, MFlop/s
FORTRAN, 2-D : 0.000, 0.000, 0.000 inf
C, 2-D : 0.000, 0.000, 0.000 inf
FORTRAN, 3-D : 1.000, 1.000, 0.000 42.000
C, 3-D : 1.000, 1.000, 0.000 42.000
CPU-Time-based Speed-up, Residual, FORTRAN/C, 2-D nan %, 3-D 0.000 %
*************************************************************************************
7.18user 2.07system 0:09.76elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (131major+78082minor)pagefaults 0swaps
Completed at 05:33:37 PM CST on Saturday, January 8, 2000