Re: speed up calculation suggestions
- From: Paul van Delst <Paul.vanDelst@xxxxxxxx>
- Date: Tue, 13 Nov 2007 19:56:59 -0500
rleavitt@xxxxxxxxxxxxxxxx wrote:
I am an actuary and not a system professional and so please bear with
me. We use Fortran for some or our calculations and are being hampered
by long calculation times. There is nothing fancy in the code... I
process many millions of records from text files through some fairly
simple calculations, and write out the results. I want to speed up
this process, but am really not sure where to devote my efforts. I
have a new (dual core) windows XP machine with F95 compiled by
absoft. (I think version 7.5). I do not have much system support and
not too much time for experimentation, but am willing to tinker a
little. I am interested in other's thoughts.
Options:
1. Optimize my code: I am not sure what this means... It is pretty
stripped down now.
2 Get an updated compiler (any suggestions?)
3 Switch to Linux
4. Vectorize my code and use multiple processors (not sure how hard
this is).
5. Upgrade my computer (are some CPU's better at computation than
others?)
6. Other suggestions?
First step: run your code through a profiler to figure out where the hotspot (slowest) part of the code is. Most compilers nowadays come with a profiler by default and looking at the Absoft website..... yep... the distro CD includes a profiler. One hopes the documentation contains instructions on how to use it.
With zero information to go on (until you profile your code) I would suspect the text file I/O (just because; but also if, for example, you're reading these files across a network).
But, as an actuary, you should appreciate the value of a suggestion based on no data. :o)
cheers,
paulv
.
- Follow-Ups:
- Re: speed up calculation suggestions
- From: rleavitt
- Re: speed up calculation suggestions
- References:
- speed up calculation suggestions
- From: rleavitt
- speed up calculation suggestions
- Prev by Date: Re: speed up calculation suggestions
- Next by Date: Re: speed up calculation suggestions
- Previous by thread: Re: speed up calculation suggestions
- Next by thread: Re: speed up calculation suggestions
- Index(es):
Relevant Pages
|