Checking CPU capabilities
Chris Hill
chris at monochrome.org
Sat Feb 2 18:03:06 UTC 2019
On Sat, 2 Feb 2019, Mayuresh Kathe wrote:
> On 2019-02-02 09:46 PM, Chris Hill wrote:
>> On Sat, 2 Feb 2019, Mayuresh Kathe wrote:
>>
>>> Under Linux it is `cat /proc/cpuinfo`
>>> Under Solaris it is `isainfo -v`
>>> What is it under FreeBSD 12?
>>
>> Something like
>> $ grep Features /var/run/dmesg.boot
>> ...or am I missing something?
>
> I need to know if my processor supports AVX, AVX2, AVX-512, SIMD, etc.
> Would your approach give me that sort of information?
I think it would. On one machine I get:
$ grep Features /var/run/dmesg.boot | grep AVX
Features2=0x3d9ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,TSCDLT,XSAVE,OSXSAVE,AVX,F16C>
...and on another I get bupkis:
$ grep Features /var/run/dmesg.boot | grep AVX
$
So I gather that the first machine has AVX support and the second does
not.
--
Chris Hill chris at monochrome.org
More information about the freebsd-questions
mailing list