Build ATLAS under Arch Linux

2021/11/18

Orginal post: https://aur.archlinux.org/packages/atlas-lapack/?O=10&PP=20#comment-599526

Hey I just installed, and make these notes, that might be useful for somebody else: Good explanation in atlas site: http://math-atlas.sourceforge.net/atlas_install/node5.html

Follow this, the governor set by cpupower knows shit about CPU without this: http://unix.stackexchange.com/questions/121410/setting-cpu-governor-to-on-demand-or-conservative Summary: http://vincent.jousse.org/tech/archlinux-compile-lapack-atlas-kaldi/

===========Steps===========
Permanent disable intel_pstate:

$ vi /etc/default/grub  
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable" 

and update grub:

$ grub-mkconfig -o /boot/grub/grub.cfg  

And then enable acpi-cpufreq module:

su root
echo "acpi-cpufreq" > /etc/modules-load.d/acpi-cpufreq.conf

restart.

Now cpupower can set frequencies properly.

To disable throtling sudo pacman -S cpupower sudo cpupower frequency-set -g performance It should apply to all cores, but if it only apply to the first one: copy files to the other (4 in laptop)

sudo cp /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

To restore:

sudo cpupower frequency-set -g ondemand

If not all cores are set:

sudo cp /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

This stuff is only required at build time.