[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-help
Subject:    Fortran vector math header creation
From:       fweimer () redhat ! com (Florian Weimer)
Date:       2018-11-20 11:25:00
Message-ID: 87k1l8f0su.fsf () oldenburg ! str ! redhat ! com
[Download RAW message or body]

* 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic