This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/21967] When 512-bit AVX2 wrapper functions in mathvec are used?
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 12 Sep 2017 14:56:19 +0000
- Subject: [Bug math/21967] When 512-bit AVX2 wrapper functions in mathvec are used?
- Auto-submitted: auto-generated
- References: <bug-21967-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21967
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via ef8adeb0416309082c41a1518caee6961b5c42e8 (commit)
from a166531fdf601560a0005479427f60d3173f8257 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ef8adeb0416309082c41a1518caee6961b5c42e8
commit ef8adeb0416309082c41a1518caee6961b5c42e8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Sep 12 07:46:11 2017 -0700
x86: Add MathVec_Prefer_No_AVX512 to cpu-features [BZ #21967]
AVX512 functions in mathvec are used on machines with AVX512. An AVX2
wrapper is also provided and it can be used when the AVX512 version
isn't profitable. MathVec_Prefer_No_AVX512 is addded to cpu-features.
If glibc.tune.hwcaps=MathVec_Prefer_No_AVX512 is set in GLIBC_TUNABLES
environment variable, the AVX2 wrapper will be used.
Tested on x86-64 machines with and without AVX512. Also verified
glibc.tune.hwcaps=MathVec_Prefer_No_AVX512 on AVX512 machine.
[BZ #21967]
* sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
New.
(index_arch_MathVec_Prefer_No_AVX512): Likewise.
* sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
Handle MathVec_Prefer_No_AVX512.
* sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
(IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
is set.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 12 ++++++++++++
sysdeps/x86/cpu-features.h | 2 ++
sysdeps/x86/cpu-tunables.c | 7 +++++++
.../x86_64/fpu/multiarch/ifunc-mathvec-avx512.h | 13 ++++++++-----
4 files changed, 29 insertions(+), 5 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.