How do I disable avx instructions on a linux computer? [closed]

一曲冷凌霜 提交于 2020-01-03 08:57:27

问题


Or more specifically, how do I ensure that /proc/cpuinfo and the CPUID opcode do not show that AVX is enabled?

(For context, there is a bug on some Amazon EC2 instances, where AVX is falsely reported as active which causes programs that dynamically use AVX instructions to crash with SIGILL).

I've seen this kernel patch: https://patchwork.kernel.org/patch/1521191/, but I'm not sure if that affects just the kernel's avx usage or also patches up CPUID and /proc/cpuinfo. Regardless, I am hoping to find a solution that works on the linux 2.6.x kernel series.

来源:https://stackoverflow.com/questions/13965178/how-do-i-disable-avx-instructions-on-a-linux-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!