Re: libmvec simd math functions in fortran

2017-11-03 Thread Richard Biener
On Thu, Nov 2, 2017 at 7:42 PM, Toon Moene wrote: > On 11/01/2017 05:26 PM, Jakub Jelinek wrote: > >> On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: >>> >>> is there a way to get vectorized math functions in fortran? >>> >>> in c code there is attribute simd declarations or openmp

Re: libmvec simd math functions in fortran

2017-11-02 Thread Toon Moene
On 11/01/2017 05:26 PM, Jakub Jelinek wrote: On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: is there a way to get vectorized math functions in fortran? in c code there is attribute simd declarations or openmp declare simd pragma to tell the compiler which functions have simd va

Re: libmvec simd math functions in fortran

2017-11-02 Thread Janne Blomqvist
On Thu, Nov 2, 2017 at 2:49 PM, Szabolcs Nagy wrote: > On 01/11/17 16:47, Szabolcs Nagy wrote: >> On 01/11/17 16:26, Jakub Jelinek wrote: >>> On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: is there a way to get vectorized math functions in fortran? in c code there is

Re: libmvec simd math functions in fortran

2017-11-02 Thread Richard Biener
On Thu, Nov 2, 2017 at 2:07 PM, Richard Biener wrote: > On Thu, Nov 2, 2017 at 1:49 PM, Szabolcs Nagy wrote: >> On 01/11/17 16:47, Szabolcs Nagy wrote: >>> On 01/11/17 16:26, Jakub Jelinek wrote: On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: > is there a way to get vecto

Re: libmvec simd math functions in fortran

2017-11-02 Thread Jakub Jelinek
On Thu, Nov 02, 2017 at 12:49:18PM +, Szabolcs Nagy wrote: > to answer my question.. > > it seems fortran cannot express the type signature > of mathematical functions because arguments are > passed by reference. Fortran indeed normally does pass by reference, and you can vectorize it that wa

Re: libmvec simd math functions in fortran

2017-11-02 Thread Richard Biener
On Thu, Nov 2, 2017 at 1:49 PM, Szabolcs Nagy wrote: > On 01/11/17 16:47, Szabolcs Nagy wrote: >> On 01/11/17 16:26, Jakub Jelinek wrote: >>> On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: is there a way to get vectorized math functions in fortran? in c code there is

Re: libmvec simd math functions in fortran

2017-11-02 Thread Szabolcs Nagy
On 01/11/17 16:47, Szabolcs Nagy wrote: > On 01/11/17 16:26, Jakub Jelinek wrote: >> On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: >>> is there a way to get vectorized math functions in fortran? >>> >>> in c code there is attribute simd declarations or openmp >>> declare simd pragm

Re: libmvec simd math functions in fortran

2017-11-01 Thread Szabolcs Nagy
On 01/11/17 16:26, Jakub Jelinek wrote: > On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: >> is there a way to get vectorized math functions in fortran? >> >> in c code there is attribute simd declarations or openmp >> declare simd pragma to tell the compiler which functions >> have

Re: libmvec simd math functions in fortran

2017-11-01 Thread Jakub Jelinek
On Wed, Nov 01, 2017 at 04:23:11PM +, Szabolcs Nagy wrote: > is there a way to get vectorized math functions in fortran? > > in c code there is attribute simd declarations or openmp > declare simd pragma to tell the compiler which functions > have simd variant, but i see no such thing in fortr