Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

EnergyPlus simulation runtime - CPU performance

asked 2024-01-08 06:40:49 -0600

Tokarzewski's avatar

updated 2024-01-08 09:07:11 -0600

Hi,

I have difficulty finding the root cause and resolving the following issue. Any help would be appreciated. I am running the same EnergyPlus model on 2 separate machines (laptop and desktop) with different CPUs and the simulation runtime is 3x longer on a laptop.

Desktop CPU: AMD Ryzen 9 3900X Runtime: 10 min

Laptop CPU: i5-1235U Runtime: 27 min

My understanding of the issue is the following: Because the difference is so large and the synthetic single-thread benchmarks say the opposite about the performance… I don’t think the issue is related to CPU peak performance. https://www.topcpu.net/en/cpu-c/Intel...

I think it has more to do with software, meaning how the EP engine or CPU drivers are asking or controlling the CPUs frequency. Although the CPU peak performance may be similar.. laptops bottom performance is lower, laptops CPUs can be at 0.8 GHz rather than using the available 4.0 Ghz. EnergyPlus in laptops can’t ask for higher frequency to boost performance, so the CPUs have lower utilisation, and desktops don’t have any battery mode settings that optimise the battery use over performance.

I am not 100% sure if this is the correct diagnosis nor how can I force the CPU to boost the frequency.

Again, any help would be appreciated.

edit retag flag offensive close merge delete

Comments

I need to test the CPU core temperatures. Maybe it is throttling, so the CPU driver lowers the frequency and voltage to decrease the temps...

Tokarzewski's avatar Tokarzewski  ( 2024-01-08 06:46:21 -0600 )edit
3

Are you requesting a lot of output variables / detailed timestep? I/O file operations can be a culprit (like writting to the ESO / SQL files), eg if one has a faster SSD and the other a regular HDD. Check RAM usage too. Make sure you set your laptop to "performance" mode (not power optimization) too. What operating system do you use on both?

Julien Marrec's avatar Julien Marrec  ( 2024-01-09 02:50:57 -0600 )edit
2

"desktops don’t have any battery mode settings that optimise the battery use over performance". That's not true, in the sense that it does have settings for CPU power consumption (though obviously not related to battery). For eg: On my Ubuntu Linux with a Ryzen 1800X, I can use cpupower frequency-set --governor performance to switch the profile used (and it is NOT the default)

Julien Marrec's avatar Julien Marrec  ( 2024-01-09 02:57:05 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2024-10-17 04:53:02 -0600

Tokarzewski's avatar

updated 2024-10-17 11:09:33 -0600

Overriding the "process priority" from "normal" to "high" on the laptop improved the runtime from 27min to 11min.

edit flag offensive delete link more

Comments

No, EnergyPlus does not use OpenMP or take advantage of multiple threads, see https://github.com/NREL/EnergyPlus/is... for example.

shorowit's avatar shorowit  ( 2024-10-17 08:47:10 -0600 )edit
1

An EnergyPlus developer confirmed with me that that never made it into the official EnergyPlus (with maybe one small exception around ground HX calcs). They said, "The 10x project had high hopes for implementing it, but the system overhead and the interconnectedness of EnergyPlus thwarted that".

shorowit's avatar shorowit  ( 2024-10-17 10:02:44 -0600 )edit

And if you look at the last slide of the presentation, you can see that some models got slower w/ OpenMP.

shorowit's avatar shorowit  ( 2024-10-17 10:13:20 -0600 )edit

@shorowit thank you for the clarification. I removed my false hypothesis.

Tokarzewski's avatar Tokarzewski  ( 2024-10-17 11:10:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2024-01-08 06:40:49 -0600

Seen: 136 times

Last updated: Oct 17