Fedora FC16 gfortran very slow to link
Jimmy Raeder
J.Raeder@unh.edu
Thu Mar 7 20:09:00 GMT 2013
For any f77 code that uses large arrays I find that linking takes a very long time with
FC16 gfortran, see below. On on older machine with SUSE and gfortran (4.4.1) compiling
and linking that same program takes less than 1s. The link time (it's all in ld) grows with the size of the arrays.
It does not matter if the arrays are in common blocks or not. Apparently there is something
in the FC16 gfortran configuration that causes this behavior, and I haven't been able to figure it out.
Although it's not really a bug, it is very annoying and I would appreciate if someone could point me to a solution.
thanks -- Jimmy
mhd>
mhd> gfortran --version
GNU Fortran (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
mhd> time gfortran -mcmodel=medium test.f
39.026u 32.332s 1:12.00 99.0% 0+0k 0+40io 0pf+0w
mhd> cat test.f
program test
parameter (NN=2000000000)
common /aaa1/a(NN)
do i=1,NN
a(i)=i
enddo
s=1
do i=1,NN
s=s+a(i)*a(i)/s
enddo
stop
end
mhd>
--------------------------------------------------------------------------------------------------
Joachim (Jimmy) Raeder
Professor of Physics, Department of Physics & Space Science Center
University of New Hampshire
245G Morse Hall, 8 College Rd, Durham, NH 03824-3525
voice: 603-862-3412 mobile: 603-502-9505 assistant: 603-862-1431
e-mail: J.Raeder@unh.edu
WWW: http://mhd.sr.unh.edu/~jraeder/tmp.homepage
--------------------------------------------------------------------------------------------------
More information about the Fortran
mailing list