Intel P +E or AMD for large (2000) Monte Carlo simulations

69 次查看(过去 30 天)
I'm about to build a new pc with running large Monte Carlo simulation in mind. I know that matlab doesn't benefit from threading. Am I better off with an Intel 14700k 20core (8P+12E) cpu, or an AMD 7950x 16core cpu (16P) cpu.
I'm concerned that the intel chip E cores can't perform equally well as the P cores, so that different Monte Carlo runs won't finish about the same time.
On the other hand, by running bench(0), I see that AMD chips are really bad at linear algebra, which is another concern to me.
A related q&a to this post

采纳的回答

Qiang Li
Qiang Li 2024-6-16
编辑:Qiang Li 2024-7-25
I went with the intel 14900k. For me it seemed to be the safe bet at that moment.
After using the intel chip for over a month mostly doing parallel computing, it becomes clear that the E cores are holding the P cores back. Monitering the system resources, the P cores always finish the job first and will idle waiting for the E cores to catch up.
  2 个评论
Yunxiao
Yunxiao 2024-8-20
Hi, my new PC is still under delivery and I am worried about the same issue, too. Could you please tell whether the relative waiting time for P cores would not be that serious if the number of parallel loops is large? The process is like below:
Suppose there are 8 P cores and 16 E cores, and I called 24 workers for parallel computation (each worker is based on a physical core). Also suppose there are last 24 parallel loops left, and the 24 workers are working on it. since 8 P cores are faster and they finish 8 loops first, then they would wait for 16 E cores to finish. Then if the number of parallel loops to be computed is quite large, then the relative waiting time for P cores would not be that serious, right?
Qiang Li
Qiang Li 2024-8-24
编辑:Qiang Li 2024-8-27
Like you said, when the loop is large enough, I've tried 300 so far, all cores will stay active most of the time. But I've also observed when the p cores would idle for half an hour for a simulation that took three hours. It could be caused by my implementation. I guess you also went with the i9 chip, mine will stay 5.5ghz on the p cores and 4.3 on the e cores over prolonged period of time with a 0.1 undervolt.
edit: I ran some 100 parfor loops today. Here're some cpu status. Hard to tell if the active P/E-core count reflects the actual workload on them.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by