libmvec simd math functions in fortran
Szabolcs Nagy
szabolcs.nagy@arm.com
Wed Nov 1 16:47:00 GMT 2017
On 01/11/17 16:26, 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).
>
1) i don't want to change the fortran.
2) it does not work for me.
i want this to call vector powf in libmvec:
subroutine foo(a,b,c)
real(4) a(8000),b(8000),c(8000)
do j=1,8000
a(j)=b(j)**c(j)
end do
end
where do i put
!$omp declare simd (powf)
?
More information about the Gcc
mailing list