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

How to track computation time?

royxu
Beginner
1,128 Views
Dear all,
Recently I migrated my Visual Fortran program into our Linux server. In Windows, I use CTIME(TIME()) to get the current date and time. However it is not working in Linux since I cann't call the statement "USE DFPORT" at the beginning. I just want to record how much time used for the computation when the program runs at Linux. Any suggestions?
Thanks!
Roy
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,128 Views
Why not use the CPU_TIME intrinsic? Or SYSTEM_CLOCK if you want wall-clock time.

You can USE IFPORT, however.

Message Edited by Steve_Lionel on 01-19-2006 02:40 PM

0 Kudos
royxu
Beginner
1,128 Views

Regarding the code, how do I write it in my program to get the time?

Meanwhile I changed "USE DFPORT" to "USE IFPORT", it still gave me error messag during the compiling. I am not quite understand whether I can still use "USE XXX module" in Linux like I did in Windows.

Thanks!

Roy

0 Kudos
royxu
Beginner
1,128 Views

I figured it out how to write it in the program to get the time.

I still have that question for "USE XXXmodule " in Linux.

Thanks!

0 Kudos
Steven_L_Intel1
Employee
1,128 Views
You can use some of the modules. IFPORT is provided and should be visible to the compiler if you have set up the environment with the "source" command in the usual way.

See the Language Reference Manual for information on the Fortran standard routines CPU_TIME and SYSTEM_CLOCK.
0 Kudos
Reply