CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Print message for ExecutionTime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2018, 07:04
Default Print message for ExecutionTime
  #1
Member
 
Join Date: Mar 2016
Posts: 33
Rep Power: 10
mahmoodn is on a distinguished road
Using the CUDA solver, I see the following info at each time step

Code:
Time = 10

cudaCG:  Solving for T, Initial residual = 9.9545596e-07, Final residual = 9.9545596e-07, No Iterations 0
ExecutionTime = 5.68 s  ClockTime = 5 s
I greped to see which part of the code prints that time. However, there are so many instances and I can not figure out which one is correct. Does anybody know?
mahmoodn is offline   Reply With Quote

Old   March 19, 2018, 07:59
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
The ExecutionTime is the time needed by the CPU for the iteration step and ClockTime is the "real" Time.
Further information can be found here: Difference between "ExecutionTime" and "ClockTime"
RobertHB is offline   Reply With Quote

Old   March 19, 2018, 13:55
Default
  #3
Member
 
Join Date: Mar 2016
Posts: 33
Rep Power: 10
mahmoodn is on a distinguished road
OK. But I would like to know which source file is used for printing that information. As I said, there are multiple instances in the source folder.


Also, from you explanation I think ClockTime should be bigger than ExecutionTime. But I see the inverse. Can you explain more?
mahmoodn is offline   Reply With Quote

Old   March 20, 2018, 03:00
Default
  #4
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
From my observation the ClockTime is allways a whole number, while ExecutionTime gives the exact fractions. Also ExecutionTime can be smaller or larger (by a few fractions) than the ClockTime.

The printout is from solver.C:
Code:
        Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
            << "  ClockTime = " << runTime.elapsedClockTime() << " s"
            << nl << endl;
RobertHB is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide: Getting Started with the CFD Online Discussion Forums pete Site Help, Feedback & Discussions 8 July 29, 2016 05:00
[blockMesh] Another cylinder question bendel_boy OpenFOAM Meshing & Mesh Conversion 5 January 6, 2015 05:09
single directional message transmit in parallel model su_junwei OpenFOAM Programming & Development 1 December 17, 2009 07:00
error message susan Siemens 0 August 17, 2007 00:27
Error Message on es-ice [BUG] Wendy Tjia Siemens 0 February 10, 2005 08:40


All times are GMT -4. The time now is 21:44.