svn commit: r520468 - in head/sysutils: . cpuid2cpuflags

Alexey Dokuchaev danfe at freebsd.org
Fri Dec 20 08:45:32 UTC 2019


On Fri, Dec 20, 2019 at 09:45:49AM +0400, Gleb Popov wrote:
> On Fri, Dec 20, 2019 at 9:18 AM Alexey Dokuchaev wrote:
> > New Revision: 520468
> > URL: https://svnweb.freebsd.org/changeset/ports/520468
> >
> > Log:
> >   The program attempts to obtain the identification and capabilities
> >   of the currently used CPU, and print the matching set of CPU_FLAGS_*
> >   flags for Gentoo Linux, but it could be useful for FreeBSD as well.
> 
> I wrote something similar for FreeBSD specifically: sysutils/hs-cputype

Sure thing, except that it's written in Haskell, so one has to either use
the binary package or download and/or build rather heavy environment to
"make install" it.

It also reports slightly different (and scarcer) values, e.g. on this AMD
A8-5550M of mine:

  $ cpuid2cpuflags
  CPU_FLAGS_X86: aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt
  sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop

  $ /usr/local/bin/cputype -f
  xop avx sse42 sse41 ssse3 sse4a sse3 amd64 sse2 sse mmx

That said, I think both tools can be useful and have their place in the
ports tree. :-)

./danfe


More information about the svn-ports-all mailing list