Fortran vector math header creation

Florian Weimer fweimer@redhat.com
Tue Nov 20 11:25:00 GMT 2018


* Martin Liška:

> Hi.
>
> I've working on SIMD support for Fortran and I've got a GCC patch
> ready to be installed:
> https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01622.html
>
> Now I would need to generate math-vector-fortran.h header file in glibc.
> Can be generated from math-vector.h via attached following script.

Is this related to libmvec?

> $ cat math-vector.h | ./generate-fortran-math-vector.py > math-vector-fortran.h && cat math-vector-fortran.h
> !GCC$ builtin (cos) attributes simd (notinbranch)
> !GCC$ builtin (cosf) attributes simd (notinbranch)
> !GCC$ builtin (sin) attributes simd (notinbranch)
> !GCC$ builtin (sinf) attributes simd (notinbranch)
> !GCC$ builtin (sincos) attributes simd (notinbranch)
> !GCC$ builtin (sincosf) attributes simd (notinbranch)
> !GCC$ builtin (log) attributes simd (notinbranch)
> !GCC$ builtin (logf) attributes simd (notinbranch)
> !GCC$ builtin (exp) attributes simd (notinbranch)
> !GCC$ builtin (expf) attributes simd (notinbranch)
> !GCC$ builtin (pow) attributes simd (notinbranch)
> !GCC$ builtin (powf) attributes simd (notinbranch)
>
> Can you please help me how to integrate that to glibc build process?

How is this file supposed to be used?  Is it an installed file?  Where
should we put it?

Is it really worth auto-generating this file?

> Do you use a scripting language?

We can use Python 3 during build.

Thanks,
Florian



More information about the Libc-help mailing list