This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH x86_64][BZ #20139] Don't allow configure with not supporting AVX512 assembler w/o --disable-avx512.


On 27 Jun 2016 12:09, H.J. Lu wrote:
> On Mon, Jun 27, 2016 at 12:04 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On 27 Jun 2016 11:25, H.J. Lu wrote:
> >> On Mon, Jun 27, 2016 at 11:16 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> >> > On 27 Jun 2016 20:40, Andrew Senkevich wrote:
> >> >> +'--disable-avx512'
> >> >> +     By default for x86_64, the GNU C Library is built with
> >> >> +     '--enable-avx512'.  Configure with '--disable-avx512' if assembler
> >> >> +     doesn't support AVX512.
> >> >
> >> > people shouldn't have to pass configure flags like this to get a
> >> > successful build.  we have all the info in order to figure out a
> >> > sane default.  specifying enable/disable flags is purely to not
> >> > use the default autodetection.
> >>
> >> We want to make sure that x86-64 glibc supports AVX512.  Any
> >> suggestions are welcome.
> >
> > i don't see how that's relevant to what i said.  if the assembler can
> > be probed to see if it supports AVX512, then do that.  why do you need
> > a configure flag at all in that case ?
> 
> We want to REQUIRE AVX512 support for x86-64 glibc build.

then why are you adding a configure flag ?  why is AVX512 special
compared to any other ISA feature ?  if the majority of people are
getting their builds from distros, is a flag really needed ?

let's assume that you really really want the flag.  my point still
stands: the default should *not* be fatal *regardless* of what the
assembler supports.  the only time you may throw an error is if the
user explicitly passed --enable-avx512.  the --disable flag is just
a convenience for the cache var, and the default is to use the test
of the assembler to determine whether to enable it in glibc.
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]