14.04,我已禁用 CPU 节流,但安装 Atlas 时说:“CPU 节流显然已启用”

Azh*_*xue 6 performance cpu

我的电脑使用的是 ubuntu 14.04,我需要安装 Atlas。

Atlas 说:它需要禁用 CPU 节流,我已经完成了禁用它的工作。

cat /sys/devices/system/cpu/cpu{0,1,2,3}/cpufreq/scaling_governor
performance
performance
performance
performance
Run Code Online (Sandbox Code Playgroud)

但是当我运行这个命令来安装 Atlas 时:

../configure -b 64 -D c 2400 --prefix=/home/azhen/lib/atlas --with-netlib-lapack-tarfile=/home/azhen/Downloads/lapack-3.4.1.tgz
Run Code Online (Sandbox Code Playgroud)

它说:

CPU Throttling apparently enabled!
It appears you have cpu throttling enabled, which makes timings
unreliable and an ATLAS install nonsensical.  Aborting.
See ATLAS/INSTALL.txt for further information
Run Code Online (Sandbox Code Playgroud)

有人可以帮我看看吗?

Fil*_* FB 4

我是一个相当新的 Ubuntu 用户,不是计算机专家,我遇到了和你完全相同的问题。经过一番努力,我设法避免出现“CPU 节流显然已启用!”的消息。并安装了 ATLAS 3.10.2。

我在https://sourceforge.net/p/math-atlas/support-requests/859/#f11d中得到的第一个提示,基本上是说“ATLAS 唯一应该检测到未发生的节流的时间是当处理器的运行速度固定为低于其最大速度。” 我的处理器没有以最大速度运行,因为我有 BIOS 速度限制。

如果您遇到同样的问题,请查看文件中允许的最大频率/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq。将此值复制到每个处理器的文件(/cpu/cpu1、/cpu/cpu2 等)。您需要以超级用户身份执行此操作,但在生效之前,您必须将文件/sys/module/processor/parameters/ignore_ppc从0编辑为1。更多详细信息请参见此处

这对我来说仍然不够,我发现我必须将文件编辑/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq为之前使用的相同值。之后我就没有再收到无聊的消息了,ATLAS就安装成功了!

更新:我刚刚再次经历了这个过程,看来真正的问题是启用功率缩放驱动程序 intel p_state。仅当您首先禁用它时,上述过程才有效。按照此处的说明进行操作,并将“启用”替换为“禁用”,如此处所述


小智 1

我按照 ubuntu 的 Caffe 安装指南进行操作,其中写着可以通过以下方式安装 BLAS

sudo apt-get install libatlas-base-dev