Silverfrost Forums

Welcome to our forums

Compiled program runs slow

19 Jul 2013 2:31 #12662

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

19 Jul 2013 3:30 #12664

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

20 Jul 2013 11:08 #12666

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

20 Jul 2013 11:46 #12667

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

21 Jul 2013 11:40 #12673

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

Please login to reply.