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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7767a311e01e1cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 21 Oct 2006 13:28:47 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization References: X-Newsreader: Tom's custom newsreader Message-ID: <2KmdnXGj271C-6fYnZ2dnUVZ_oKdnZ2d@comcast.com> Date: Sat, 21 Oct 2006 13:28:47 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-NpjF/7Iu089aapyn8Jy8vyrv6b0mk509rZ0wRjnFyL1LZleR5T+1cU1zxC325wb7xGSz7yUOVqSrfbQ!KuOfMkcpRvPwvYmiKo7Scow/C5gq8P5hPySncptw/cbY1MvGVXy8depxDJJq4RXEfXrdFcDZs0lp!yBez+Ow4UK7yBA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7122 Date: 2006-10-21T13:28:47-05:00 List-Id: > I'd certainly be willing to run a few benchmarks but the important thing > here is that rather innocent looking code is running 2-4x slower than it > "should". But: > > for Ada: "tst_array 800" runs in 18 seconds > > for Fortran "tst_array 800" runs in 6 seconds > > > > (if I use the fortran "matmul" intrinsic the fortran time drops to > > 2.5 seconds) Clearly the right way to do large matrix multiplies is to call matmul. I'd be surprised if it made any significant difference whether it was called from Ada or from Fortran.