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

CPU usage during execution

babile
Beginner
608 Views
Hi,

forgive this perhaps naive question, but I was looking at the CPU usage history diagram available on the task manager app. on Windows machines and noticed that when a fortran executable (a quick-win application with frame window etc. written and compiled/linked with CVF 6.6) starts running, the CPU usage jumps to 100% and stay there for the entire time I keep the executable on. Even if I don't do anything with the executable, no numerical computation is taking place or, in fact, nothing at all is taking place except for the dummy infinite loop that runs in the background to keep the frame window open.

Is this normal? Why would just displaying the frame window suck all CPU resources from a 2.4 GHz Pentium IV?
I feel like something could be fundamentally wrong with some of my settings, but do not know what exactly.
By the way, the program does run fine.

-b.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
608 Views
If you modelled your main program after the various samples, there's usually an infinite loop at the end of the main program that simply waits for for termination. This will cause the CPU usage to go to 100%. Insert a call to SLEEPQQ with a .2 second delay in the loop, and things should improve a lot.

Steve
0 Kudos
Reply