Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2019 13:03:03 -0500 (EST)
From:      Chris Hill <chris@monochrome.org>
To:        Mayuresh Kathe <mayuresh@kathe.in>
Cc:        freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org
Subject:   Re: Checking CPU capabilities
Message-ID:  <alpine.BSF.2.20.1902021259560.44144@tripel.monochrome.org>
In-Reply-To: <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in>
References:  <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <alpine.BSF.2.20.1902021114310.44144@tripel.monochrome.org> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in>

next in thread | previous in thread | raw e-mail | index | archive | help
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@monochrome.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1902021259560.44144>