Re: gains from vectorization
- From: "Joost" <jv244@xxxxxxxxx>
- Date: 7 Jun 2005 11:15:04 -0700
Hi,
vectorization certainly won't help any kind of code, so it is important
to understand what part of the code is consuming most CPU time.
(compile the code with -pg, run it, and examine the output of gprof
executable_name gmon.out).
If this indicates some vectorizable loops are consuming most time,
-ftree-vectorize might do something (but in most of the cases less than
you might hope for).
All this assumes that you're using some other kind of optimisation
already (-O3 -march=XXX -ffast-math ...), and that your code is already
'well' written.
Notice that some commercial compiler can be quite a bit faster than g95
(also quite a bit more expensive ;-).
Joost
.
- Follow-Ups:
- Re: gains from vectorization
- From: student
- Re: gains from vectorization
- References:
- gains from vectorization
- From: student
- Re: gains from vectorization
- From: Steven G. Kargl
- Re: gains from vectorization
- From: student
- gains from vectorization
- Prev by Date: Re: DATA Statement syntax question
- Next by Date: Re: writing to files
- Previous by thread: Re: gains from vectorization
- Next by thread: Re: gains from vectorization
- Index(es):
Relevant Pages
|