Newsgroups: comp.lang.fortran
From: ka...@troutmask.apl.washington.edu (Steven G. Kargl)
Date: Tue, 17 Jun 2008 20:41:49 +0000 (UTC)
Local: Tues, Jun 17 2008 4:41 pm
Subject: Re: Global array operations: a performance hit?
In article <9e1269be-de8c-4971-857d-e95bf639d...@i76g2000hsf.googlegroups.com>,
Dennis Wassel <dennis.was...@googlemail.com> writes: > On 17 Jun., 20:31, nos...@see.signature (Richard Maine) wrote: For starters, you can see what gfortran does by using the >> 1. Compilers have had over 5 decades of time to develop techniques of > OK, here's my newfound corner of gcc development that I feel like -fdump-tree-original option. Try it with subroutine po(x,y) If you're really curious about the internal goop, use -fdump-tree-all. >> 2. Array temporaries are often a big deal in whole-array expressions. A There is currently no warning and AFAIK no request for such a feature. >> naive (aka straightforward) applicaion of the rules very often involves >> such array temporaries, which are expensive in time. The compiler has to >> do a fair amount of work to figure out whether they can be elided. See >> point 1. That's probably not the case for your example, but it is a >> common one. > The Intel compiler (10.1, maybe earlier versions as well) throws a gfortran has fairly decent dependency analysis, but in certain situation it will err on the safe side and generate a temporary array even if it isn't necessarily needed. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||