Re: speed up calculation suggestions



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
.



Relevant Pages

  • Re: speed up calculation suggestions
    ... standard text-based format. ... We use Fortran for some or our calculations and are being hampered ... Get an updated compiler ... run your code through a profiler to figure out where the hotspot ...
    (comp.lang.fortran)
  • Re: speed up calculation suggestions
    ... We use Fortran for some or our calculations and are being hampered ... by long calculation times. ... There is nothing fancy in the code... ...
    (comp.lang.fortran)
  • speed up calculation suggestions
    ... I am an actuary and not a system professional and so please bear with ... We use Fortran for some or our calculations and are being hampered ... by long calculation times. ...
    (comp.lang.fortran)
  • Re: speed up calculation suggestions
    ... We use Fortran for some or our calculations and are being hampered ... by long calculation times. ... absoft. ...
    (comp.lang.fortran)
  • Re: speed up calculation suggestions
    ... We use Fortran for some or our calculations and are being hampered ... positively the first thing to do is to profile your code. ... "Optimize" should be interpreted to mean enabling the compiler to ... algorithm. ...
    (comp.lang.fortran)