Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

CPU time, elapsed time, multiple processors and time measurements

rase
Neuer Beitragender I
1.278Aufrufe

Now and then we have discussions here in the forum about CPU time, elapsed time, with single or multiple threads, and the intricacies of time measurements using functions and subroutines provided by IVF and Windows. Although I use time-measuring functions for a number of years now, I am not always sure what I get from the functions and subroutines in fact. Could Dr Fortran perhaps be so kind to write a tutorial about the subject, sharing his encyclopedic knowledge about the subject with us?

0 Kudos
12 Antworten
SergeyKostrov
Geschätzter Beitragender II
1.278Aufrufe
There is a very short description for CPU_TIME function in another thread: Forum Topic: CPU time vs. time Web-link: software.intel.com/en-us/forums/topic/392280 Note: Take a look at first a couple of posts. Thanks.
Bernard
Geschätzter Beitragender I
1.278Aufrufe

What dll CPU_TIME belongs to?Does anybody know?

SergeyKostrov
Geschätzter Beitragender II
1.278Aufrufe
>>...What dll CPU_TIME belongs to? Does anybody know? This is Not a DLL. This is a Fortran function and take a look at online help for more information.
Bernard
Geschätzter Beitragender I
1.278Aufrufe

This is compiler intrinsic function.I was interested more in implementation.What timer this function accesses.

SergeyKostrov
Geschätzter Beitragender II
1.278Aufrufe
You were told many times in the past that Intel doesn't release that information, that is implementation details.
Bernard
Geschätzter Beitragender I
1.278Aufrufe

Sorry sometimes in the heat of discussion you can easily forgot such a things.

SergeyKostrov
Geschätzter Beitragender II
1.278Aufrufe
You could try to find Open Source Fortran and take a look at sources of CPU_TIME function ( of course if it is supported and implemented ).
Bernard
Geschätzter Beitragender I
1.278Aufrufe

Thanks Sergey.

TimP
Geehrter Beitragender III
1.278Aufrufe

One of the more recent discussions about ifort windows timers: http://software.intel.com/en-us/forums/topic/277492

It's true there is more open discussion relative to gfortran on Windows, and it was agreed recently that improvements are needed there.

Bernard
Geschätzter Beitragender I
1.278Aufrufe

By looking at mentioned by Tim article it is clear that CPU_TIME on Win platform can use one of the RTC available.It is my theory that for example on Win platform CPU_time can call indirectly one of the Hal timing functions.

Steven_L_Intel1
Mitarbeiter
1.278Aufrufe

Thanks for the article suggestion - I'll keep it in mind.

SergeyKostrov
Geschätzter Beitragender II
1.278Aufrufe
Please take a look at: Forum Topic: Precision of CPU_Time and System_Clock Web-link: software.intel.com/en-us/forums/topic/277492
Antworten