From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b49d3a703a4b4db5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!i28g2000yqa.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: compiler settings in AdaGIDE Date: Mon, 26 Jul 2010 07:12:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <02d1f899-ad8f-493b-8f64-3791868a1bdb@q35g2000yqn.googlegroups.com> NNTP-Posting-Host: 193.11.22.91 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1280153526 29802 127.0.0.1 (26 Jul 2010 14:12:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jul 2010 14:12:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i28g2000yqa.googlegroups.com; posting-host=193.11.22.91; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12579 Date: 2010-07-26T07:12:05-07:00 List-Id: On Jul 26, 12:57=A0am, jonathan wrote: > On Jul 25, 2:29=A0pm, Ada novice wrote: > > > Many thanks for all these precious information. The settings > > > -gnatnp -O2 -march=3Dnative -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. Maybe what I have in my code is not affected by the -ffast-math switch. > 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! I would prefer to keep the -gnatn. > > 2. In the specification -march=3D"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=3Dnative. =A0It helps a little on all the machines I've > used and occasionally in the past it has helped enormously. =A0Just > now I removed -march=3Dnative 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. Thanks for this information. YC