On 11/01/2017 05:26 PM, Jakub Jelinek wrote:
On Wed, Nov 01, 2017 at 04:23:11PM +0000, 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 fortran.
!$omp declare simd should work fine in fortran (with -fopenmp
or -fopenmp-simd).
Note that - if you don't want to change the Fortran code, this - almost
two years old - proposal would work:
https://gcc.gnu.org/ml/gcc/2016-01/msg00025.html
Obviously, I'll only be able to implement this once retirement comes
around (i.e., after 2023).
Kind regards,
--
Toon Moene - e-mail: t...@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news