View previous topic :: View next topic |
Author |
Message |
arctica
Joined: 10 Sep 2006 Posts: 146 Location: United Kingdom
|
Posted: Fri Jul 19, 2013 3:31 pm Post subject: Compiled program runs slow |
|
|
Hello
I have compiled a Fortran95 program on my work machine and it seems to run slower than when I compiled on my home PC.
Work: 16Gb RAM Win7 64bit Enterprise (4 mins to run job)
Home: 4Gb RAM win7 64bit Home-Premium (2-3 mins run)
I checked the options for Fortran application and /Debug and /checkmate are on. I can't see what the "off" switch is for these things as I am sure this would speed things up at run-time.
Cheers
Lester |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Fri Jul 19, 2013 4:30 pm Post subject: |
|
|
Lester,
The most probable explanation is that your work PC is a lot slower than your home PC, despite having more RAM. Before I retired I was cursed with a work machine that ran at a snail's pace, and if I wanted to do anything meaningful I did it at home. Companies buy loads of machines to a basic specification, i.e. with slow cpu speeds. Corporates buy multiple Windows licences, and that normally comes with top spec versions of Windows, allowing them to be remotely supported by your IT group.
If you work for a University, find an obliging secretary and use the machine they work on, out of hours. The admin staff always get higher spec machines just so they can run MS word faster...
Eddie |
|
Back to top |
|
 |
arctica
Joined: 10 Sep 2006 Posts: 146 Location: United Kingdom
|
Posted: Sat Jul 20, 2013 12:08 pm Post subject: |
|
|
Seems odd that my home Pc will run the same code faster than the work one that has more RAM and I think a faster chip too!
Is there a way to compile the code without the debug bits so it can run better all round? Seems for appliations /checkmate and /debug are on default and greyed-out when I looked.
The other oddity was that the code I compiled on my home pc which ran fine, when transferred to the work one gave run-time errors, so I had to recompile at work and tweak the code a bit.
Is there a machine dependency option I need to be aware of when building?
Cheers
Lester |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Sat Jul 20, 2013 12:46 pm Post subject: |
|
|
Depends on what you mean by faster. If it is rated higher because it has more cores but a slower processor speed, then you might just see the latter. Also some IT sections add software for remote management that you won't see running on your home PC.
There are hardware dependency switches in FTN95, but they all relate to pretty obsolete things.
What are the specs, what is the timing difference, or is it subjective?
E |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Sun Jul 21, 2013 12:40 pm Post subject: |
|
|
If you are running the program on a network drive on the work computer and there is a lot of disk reading and writing, then this could slow it down.
You could run task manager and see what is the cpu time and disk usage.
Switching the program to run on the c: drive would fix that up.
If this does not explain the problem, then you will have to do more searching to get an explaination.
John |
|
Back to top |
|
 |
|