An error has occurred. This application may no longer respond until reloaded. Reload 🗙
老寇说

老寇说

好记性不如烂笔头
老寇说
Fluent并行计算效率测试(一)

文章分类:cfd流体力学  发布时间:2024-05-24

如何能够最大程度的利用计算核心,提高计算效率,同时降低无用核时节省费用,是我们需要考虑的一个问题。

在一些教程中,提到过以下几个初步结论:

1、fluent solver processes设置里,如果数量超过物理核心,并不能提高速度,反而会降低速度,这一点ansys在知乎里也有说明 见这里

2、网格数量与核心有一个对应关系,比如每个物理核心能处理5万网格,可以根据这个进行核心设置,如果核心数超过一定数值,则核心间通讯时间增加

   计算时间反而下降

为了验证上面的两个结论,做了初步试验如下:

1、本次测试平台包含:

     a、12700 CPU  32G内存  12核20线程  主频3.6-4.8G

     b、至强8163 192G    24核48线程 主频2.5G

2、测试网格

   a、选用学习中使用的一个网格

b、网格数量 合计约27.4万

3、测试方法


时间步长0.001  计算10步  用系统自带定时器计时

4、12700测试结果

a、设置5核并行 计算时间 04:11 CPU占用率60%



b、设置6核并行 计算时间02:53  CPU占用率 78%


c、设置7核并行 计算时间 03:17 CPU占用率85%

d、设置10核并行 计算时间 02:53 CPU占用率100%



因更多线程数报错 无法测试

因为12700存在大小核,所以如何调度,以及如何影响计算效率不明,但基本可知::对于家用cpu,并不是选择的核数越多计算越快


5/24/2024 6:53:28 PM

Seems like the connection with the server has been lost. It can be due to poor or broken network. Please hang on while we're trying to reconnect...
Oh snap! Failed to reconnect with the server. This is typically caused by a longer network outage, or if the server has been taken down. You can try to reconnect, but if that does not work, you need to reload the page.
Oh man! The server rejected the attempt to reconnect. The only option now is to reload the page, but be prepared that it won't work, since this is typically caused by a failure on the server.