Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2019 08:45:32 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r520468 - in head/sysutils: . cpuid2cpuflags
Message-ID:  <20191220084532.GA30042@FreeBSD.org>
In-Reply-To: <CALH631m10%2B0eDY_8BKQxErA2Bpo2dv6B6h7DRb77yO3cJCboSw@mail.gmail.com>
References:  <201912200518.xBK5IHPq022253@repo.freebsd.org> <CALH631m10%2B0eDY_8BKQxErA2Bpo2dv6B6h7DRb77yO3cJCboSw@mail.gmail.com>

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



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