Re: ELEMENTAL functions and performance
- From: harper@xxxxxxxxxxxxx (John Harper)
- Date: 31 Jul 2008 09:19:00 +1200
In article <f833019e-602e-4340-9baa-69d753521b35@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
deltaquattro <deltaquattro@xxxxxxxxx> wrote:
Hi,....
I would like to know if the attribute ELEMENTAL for a function/
subroutine can negatively affect performance or not.
However, sometimes I heard that some "new" features of the language
may have an hit on performance, because they make optimization more
difficult for the compiler. I don't know if this is the case with
ELEMENTAL, however these functions will be called a lot of times, so
it's not a good idea if they are slow. The code will run on parallel
vectorial supercomputers. According to these informations, what would
you suggest me to do?
Try it both ways with a test program, and tell us which is better on
the machine(s) and compiler(s) you used.
-- John Harper, School of Mathematics, Statistics and Computer Science,
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail john.harper@xxxxxxxxx phone (+64)(4)463 6780 fax (+64)(4)463 5045
.
- Follow-Ups:
- Re: ELEMENTAL functions and performance
- From: *** Hendrickson
- Re: ELEMENTAL functions and performance
- Prev by Date: Re: Writing $00-$FF via Fortran
- Next by Date: new Sun Studio Express release
- Previous by thread: Re: ELEMENTAL functions and performance
- Next by thread: Re: ELEMENTAL functions and performance
- Index(es):