Summary: | app-portage/cpuinfo2cpuflags-2: please re-keyword ~amd64-linux ~x86-linux | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | [OLD] Keywording and Stabilization | Assignee: | Michał Górny <mgorny> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | civil, merlin |
Priority: | Normal | Keywords: | KEYWORDREQ |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 554830 | ||
Bug Blocks: |
Description
Michał Górny
![]() ![]() ![]() ![]() The rewrite in C is good since it's a lot faster but why did the output format change? I am using it on our virtualized servers to automatically create a make include file to set all the CPU flags. The new format isn't compatible to the make.conf format anymore. old: CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" new: CPU_FLAGS_X86: mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 Would it be possible to at least include the old format via a command line parameter? (In reply to Thomas Beinicke from comment #1) > The rewrite in C is good since it's a lot faster but why did the output > format change? > > I am using it on our virtualized servers to automatically create a make > include file to set all the CPU flags. > > The new format isn't compatible to the make.conf format anymore. > > old: > CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" > > new: > CPU_FLAGS_X86: mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 > > Would it be possible to at least include the old format via a command line > parameter? The new format is easier to output and more portable. It's supported in Portage's package.use and Paludis' options.conf/use.conf. @Prefix, please proceed with testing/keywording :). Feel free to try non-Linux systems as well as those are supported now. (In reply to Michał Górny from comment #2) > (In reply to Thomas Beinicke from comment #1) > > The rewrite in C is good since it's a lot faster but why did the output > > format change? > > > > I am using it on our virtualized servers to automatically create a make > > include file to set all the CPU flags. > > > > The new format isn't compatible to the make.conf format anymore. > > > > old: > > CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" > > > > new: > > CPU_FLAGS_X86: mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 > > > > Would it be possible to at least include the old format via a command line > > parameter? > > The new format is easier to output and more portable. It's supported in > Portage's package.use and Paludis' options.conf/use.conf. How would I set it globally? Before I could use "cpuinfo2cpuflags-x86 >> /etc/portage/make.conf" which doesn't work anymore. I used to create a custom config which was included in my make.conf. And on every server restart it got repopulated in case the VMs were moved around. (In reply to Thomas Beinicke from comment #4) > How would I set it globally? > Before I could use "cpuinfo2cpuflags-x86 >> /etc/portage/make.conf" which > doesn't work anymore. > I used to create a custom config which was included in my make.conf. And on > every server restart it got repopulated in case the VMs were moved around. echo "*/* $(cpuinfo2cpuflags-x86)" >> /etc/portage/package.use Though I never thought about using the tool in scripts. Sorry. appears to compile and run on x64-solaris (gcc 4.7) CPU_FLAGS_X86: mmx mmxext sse sse2 sse3 ssse3 and x64-macos (using Clang 3.5) CPU_FLAGS_X86: aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 If possible, please try comparing with results given by platform-local CPU feature detection utilities or such. I think the MacOS way is: /usr/sbin/sysctl machdep.cpu.features machdep.cpu.leaf7_features machdep.cpu.extfeatures |