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

Problem with CPU_TIME

Reinaldo_Garcia
Beginner
296 Views
I am getting a strange behaviour using CPU_TIME. My program takes 27 hours to run and it is reporting just 11.78 hours run time.

I roughly use this sequence:


CALL CPU_TIME(START_TIME)
.
.
.

CALL CPU_TIME(END_TIME)

.
.

RUNTIM=(END_TIME-START_TIME)/3600.

RUNTIM, START_TIMA and END_TIME are all INTEGER variables.

Any idea?

Thanks,

Reinaldo
0 Kudos
1 Reply
TimP
Honored Contributor III
296 Views
CPU_TIME takes real type arguments. Even with that corrected, it's still possible for CPU busy time to be signficantly less than elapsed time, not to mention greater than elapsed time, if using multiple threads.
0 Kudos
Reply