Date: Sat, 02 Feb 2019 23:38:22 +0530 From: Mayuresh Kathe <mayuresh@kathe.in> To: Chris Hill <chris@monochrome.org> Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: Checking CPU capabilities Message-ID: <7613a5579f67197e685d72dfd1484413@kathe.in> In-Reply-To: <alpine.BSF.2.20.1902021259560.44144@tripel.monochrome.org> References: <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <alpine.BSF.2.20.1902021114310.44144@tripel.monochrome.org> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> <alpine.BSF.2.20.1902021259560.44144@tripel.monochrome.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-02-02 11:33 PM, Chris Hill wrote: > 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. Great. Thanks for that Chris.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7613a5579f67197e685d72dfd1484413>