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 1/N] x86_64 vectorization support: vectorized math functions addition to Glibc


On 09/11/2014 05:02 PM, Rich Felker wrote:
> This really seems like something the compiler should be doing --
> translating parallelizable calls to the standard math functions into
> calls to special simd versions (or better yet, LTO'ing in an
> on-the-fly simd version based on the non-simd-specific code in libm.a)
> rather than having applications written to a klunky API that's
> designed around particular hardware features.

Nothing is stopping the compiler from doing exactly what you say and
I know people who are working on it.

However, I think we should also support the klunky APIs that have been
in use at companies like Intel and IBM in something like libmvec.

So it's not one or the other, but both.

Cheers,
Carlos.


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