[cfe-dev] Bug with vectorization of transcendental functions

Hal Finkel hfinkel at anl.gov
Thu Aug 21 08:24:35 PDT 2014


----- Original Message -----
> From: "Olaf Krzikalla" <olaf.krzikalla at tu-dresden.de>
> To: cfe-dev at cs.uiuc.edu
> Sent: Thursday, August 21, 2014 8:29:56 AM
> Subject: Re: [cfe-dev] Bug with vectorization of transcendental functions
> 
> Hi Ian,
> 
> Am 19.08.2014 23:31, schrieb Ian Bell:
> > That's a nice idea with vecmathlib, but for my application I need
> > something that is portable, compiles in gcc/clang/msvc for a wide
> > range
> > of compilers and doesn't require too much hacking.
> Are you aware of Scout? scout.zih.tu-dresden.de
> It is source-to-source thus widely compatible (and configurable for
> SSE,
> AVX aso.). However currently it vectorizes C code only.
> Regarding exp() Intel provides _mm_exp_ps and the like. Back then
> (2-3
> years ago) using that intrinsic slowed down programs in my
> experiments.

FWIW, I've made use of the SLEEF library (http://shibatch.sourceforge.net/) for this (for automated vectorizer targeting). If there is interest in having some kind of vector math function targeting in the upstream LLVM/Clang, then we'll need to think seriously about exactly what to target and how to distribute any required library.

 -Hal

> 
> Best regards
> Olaf
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list