From: jonathan <johnscpg@googlemail.com>
Subject: Re: compiler settings in AdaGIDE
Date: Sun, 25 Jul 2010 15:57:29 -0700 (PDT)
Date: 2010-07-25T15:57:29-07:00 [thread overview]
Message-ID: <ceccf660-fd5a-42c1-8ef6-e4207d6d49ef@f33g2000yqe.googlegroups.com> (raw)
In-Reply-To: 02d1f899-ad8f-493b-8f64-3791868a1bdb@q35g2000yqn.googlegroups.com
On Jul 25, 2:29 pm, Ada novice <po...@gmx.us> wrote:
> Many thanks for all these precious information. The settings
>
> -gnatnp -O2 -march=native -ffast-math -funroll-loops
>
> was only 1 s faster (1537 s) as compared to using
>
> -gnatVa -O3 -gnatn -funroll-loops -gnatf -gnato
Interesting result. I repeated the 100 calls to
COMPLEX_EIGENVALUES.Eigen ( P, W, V, FAIL) test on a
121 x 121 sized matrix.
I still get the same big decrease in running time from the
-ffast-math switch. Generic_Complex_Eigenvalues
seems sensitive to -ffast-math, but I've never seen any other
program care much about it.
> 1. I see that you use -gnatnp. Is this safe to do so i.e. to suppress
> all checks?
If I remove the -gnatp then running time goes from 3.61 to 6.1 sec.
If I remove the -gnatnp then running time goes from 3.61 to 6.7 sec.
(I suspect that you know that -gnatnp is really -gnatn -gnatp).
On a high percentage of ordinary problems (usually data
analysis) I would not care at all about the increased
running time, and I would not remove the checks. There
is another class of program I write and these run for days
or weeks. These I never stop optimizing and testing, and
all checks are removed!
> 2. In the specification -march="machine architecture here", you use
> native for the machine architecture. Does this apply to Intel
> processors as well?
I just checked the gcc man pages and found nothing at all about
-march=native. It helps a little on all the machines I've
used and occasionally in the past it has helped enormously. Just
now I removed -march=native from the Generic_Complex_Eigenvalues
test and running time went from 3.61 sec to 3.58 sec. When
I remove it from the Jacobi benchmark, the program slows down
slightly. So the switch seems to do something on my intel machine,
but all I can say now is that the difference is very small and
unpredictable.
J.
next prev parent reply other threads:[~2010-07-25 22:57 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 9:52 compiler settings in AdaGIDE Ada novice
2010-07-23 11:56 ` Gautier write-only
2010-07-23 14:23 ` Ada novice
[not found] ` <f72678ba-23ce-4c9a-b17e-b33fbd45300d@l14g2000yql.googlegroups.com>
2010-07-23 14:54 ` Georg Bauhaus
2010-07-23 15:16 ` Robert A Duff
2010-07-23 15:22 ` Georg Bauhaus
2010-07-23 16:51 ` sjw
2010-07-23 18:03 ` Robert A Duff
2010-07-23 18:27 ` Ada novice
2010-07-23 20:33 ` Simon Wright
2010-07-23 19:31 ` Dmitry A. Kazakov
2010-07-23 21:01 ` Robert A Duff
2010-07-23 22:32 ` Peter C. Chapin
2010-07-24 1:48 ` BrianG
2010-07-23 20:34 ` Simon Wright
2010-07-23 20:52 ` Robert A Duff
2010-07-24 10:30 ` Ada novice
2010-07-24 12:03 ` Robert A Duff
2010-07-24 12:36 ` Ada novice
2010-07-24 18:21 ` jonathan
2010-07-25 13:29 ` Ada novice
2010-07-25 19:30 ` Jeffrey R. Carter
2010-07-26 14:13 ` Ada novice
2010-07-26 15:48 ` sjw
2010-07-26 17:12 ` Dmitry A. Kazakov
2010-07-26 17:18 ` Ada novice
2010-07-25 22:57 ` jonathan [this message]
2010-07-26 14:12 ` Ada novice
2010-07-25 23:40 ` jonathan
2010-07-26 8:02 ` Making measurements (Was: compiler settings in AdaGIDE) Jacob Sparre Andersen
2010-07-26 9:57 ` jonathan
2010-07-26 13:50 ` Making measurements Jacob Sparre Andersen
2010-07-27 15:11 ` compiler settings in AdaGIDE Colin Paul Gloster
2010-08-01 16:39 ` Ada novice
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox