计算化学公社

 找回密码 Forget password
 注册 Register
Views: 2747|回复 Reply: 7
打印 Print 上一主题 Last thread 下一主题 Next thread

[Gaussian/gview] How to determine the number of CPUs and amount of RAM should I use in Gaussian ?

[复制链接 Copy URL]

17

帖子

0

威望

197

eV
积分
214

Level 3 能力者

Hi,
Recently, I started to run my first calculations using Gaussian on a workstation : Nb of core : 6, 12 threads, and 64 GB in memory.

Should I use blindly all the the 6 core and the full amount of memory every time i run a calculation in purpose to speed it up, or there is some rules to assign the number of CPUs and amount of memory necessary to fastly terminate a job.
I read in some web page : "The following formula can be used to estimate the memory requirement of various types of Gaussian jobs (in 8-byte words):  M + 2(NB)^2, where NB is the number of basis functions used in the calculation, and M is a minimum value that is usually generously covered by the default memory size."





6万

帖子

99

威望

5万

eV
积分
120184

管理员

公社社长

2#
发表于 Post on 2022-4-9 11:20:43 | 只看该作者 Only view this author
If you are using 32 bit Gaussian, you can at most use four CPU cores. If you are using 64bit Gaussian, you should set %nprocs=6 (number of CPU physical cores) to maximally use CPU resources.

If there is no other applications that take up a lot of memory, it is suggested to set %mem=55GB to maximally and safely use spare physical memory.
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

17

帖子

0

威望

197

eV
积分
214

Level 3 能力者

3#
 楼主 Author| 发表于 Post on 2022-4-9 14:38:49 | 只看该作者 Only view this author
sobereva 发表于 2022-4-9 11:20
If you are using 32 bit Gaussian, you can at most use four CPU cores. If you are using 64bit Gaussia ...

Thank you very much for the clarifications.
I just want to understand two more things:
1-is it possible to use the number of logical cores (in my case : 12 logical core) ?
2-which keyword we use in Gaussian, %NProcShared, or %NProc ?

2407

帖子

1

威望

5960

eV
积分
8387

Level 6 (一方通行)

4#
发表于 Post on 2022-4-9 17:52:46 | 只看该作者 Only view this author
Either %nproc or %nprocshared does the job.
For gaussian 16, use %cpu instead.
Check the manual for details.
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

17

帖子

0

威望

197

eV
积分
214

Level 3 能力者

5#
 楼主 Author| 发表于 Post on 2022-4-10 13:38:54 | 只看该作者 Only view this author
abin 发表于 2022-4-9 17:52
Either %nproc or %nprocshared does the job.
For gaussian 16, use %cpu instead.
Check the manual f ...

Thank you very much abin,
Is it possible to use the number of logical cores (in my case : 12 logical core) ?

2407

帖子

1

威望

5960

eV
积分
8387

Level 6 (一方通行)

6#
发表于 Post on 2022-4-10 14:00:11 | 只看该作者 Only view this author
Julien 发表于 2022-4-10 13:38
Thank you very much abin,
Is it possible to use the number of logical cores (in my case : 12 logi ...

g09, negative.
g16, %CPU=0-11/2.

Or, you can disable hyper threads.
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

1187

帖子

5

威望

2859

eV
积分
4146

Level 6 (一方通行)

7#
发表于 Post on 2022-4-11 18:29:46 | 只看该作者 Only view this author
abin 发表于 2022-4-10 14:00
g09, negative.
g16, %CPU=0-11/2.

按照卢老师的测试结果http://sobereva.com/392,这个不是物理核心间隔着使用,每个被用的物理核心两个逻辑核心都占满嘛?

2407

帖子

1

威望

5960

eV
积分
8387

Level 6 (一方通行)

8#
发表于 Post on 2022-4-11 18:48:06 | 只看该作者 Only view this author
本帖最后由 abin 于 2022-4-11 18:53 编辑
snljty 发表于 2022-4-11 18:29
按照卢老师的测试结果http://sobereva.com/392,这个不是物理核心间隔着使用,每个被用的物理核心两个逻 ...

高斯手册有提及,
仅限于机器所有资源你独占,仅用一半核心最佳。

如果还有别的事情在做,而且有没有资源绑定,当然慢的一塌糊涂了。

我所有的前提都是假定,干活的机器就是干活的,
干活的机器就只用来干活,不会跑什么浏览器呀,文档呀之类的。
而且也是资源独占型的。

当然,对于一边跑计算,还一边跑浏览器,看文献,
是不适用的。

你看我提供的公开的工作站初始配置脚本,
都是默认关闭图形界面的,
都是建议slurm+cgroup 限定的。
另外,在CPU密集型的生产环境,
超线程带来的性能提升有限。
而超线程导致用户的脚本数错资源,
可能造成性能下降,
或者计算等待等,
负面作用一堆……

性能提升有限,麻烦还不止一个的时候,当然是关闭了最佳……


要不,你去租用超算,
开超线程,标价为六分钱,
你喜不喜欢?
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2025-8-17 22:32 , Processed in 0.170861 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list