楼主: xingxf
12230 27

[学习心得] Stata 12与Stata 13运行速度比较,物理真核和虚拟线程比较,单核运算和多核运算比较 [推广有奖]

21
niuniuyiwan 在职认证  发表于 2015-6-21 11:25:19
偶然看到se版help parallel:Setting more clusters than physical cores the user's computer has it is not recommended (see the WARNING in description).不禁大为佩服楼主所得结论:“综上所述,Stata运行速度最佳的条件是设置使用核心数目等于CPU物理核心数目(举例:4核8线程CPU,设置set processor 4速度最快)。”

22
wisdomhong 发表于 2019-3-13 15:33:13
刚才仔细研究了下statamp 的说明。有这样一句话,验证了楼主的结论是对的。On multiprocessor computers where each CPU is hyperthreaded, the current recommendation is to set Stata/MP to use the number of real CPUs, not the number of virtual processors. Under such architectures, each CPU appears to Stata/MP and the operating system as two processors, and Stata/MP would by default try to use all the (virtual) processors. On these computers, users should type
. set processors #
where # is the number of CPUs on the computer. Here we use “CPU” to mean a physical core on the computer and not a virtual core created by hyperthreading. So, we could equivalently say, where # is the number of physical cores on the computer.

23
wisdomhong 发表于 2019-3-13 15:35:19
另外,请问楼主,是否有Stata 13 MP 64-core的资源,我非常需要支持多核的statamp,能否帮忙,万分感谢!

24
wisdomhong 发表于 2019-3-13 16:40:31
另外,我看了statamp 的说明,没有发现有关于并行计算如何操作的说明,除了解释set processor #,#为物理真核的数目之外,并没有详细说明,为了使stata进行并行计算该怎么操作。不知道stata在多核电脑上是自动进行并行计算,还是需要手动设置。请问楼主是否了解。

25
cuiholly1975 发表于 2019-7-31 10:39:58
你好,请问你32核心的stata安装包能分享给我一份吗,可以付一定酬劳,谢谢

26
分田分地真忙 发表于 2022-7-23 20:01:54
wisdomhong 发表于 2019-3-13 16:40
另外,我看了statamp 的说明,没有发现有关于并行计算如何操作的说明,除了解释set processor #,#为物理真 ...
这个问题解决了吗?statamp.pdf里logit和probit是支持并行运算的,但是实际我在用Stata17 MP时,电脑cpu监视器显示只有单核在运行。

27
nanasdh11 发表于 2023-5-20 01:13:38 来自手机
所以怎么看pc在运行单核还是多核啊捂脸

28
nanasdh11 发表于 2023-5-20 01:13:51 来自手机
所以怎么看pc在运行单核还是多核啊捂脸

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-10 07:42