Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Florian Weimer
* Richard Biener: > 'pure' makes it pure but there doesn't seem to be a way to make it const? Does Fortran support setting the rounding mode? In C, sin is not const because it depends on the current rounding mode.

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Richard Biener
On Fri, Jun 15, 2018 at 9:59 AM Florian Weimer wrote: > > * Richard Biener: > > > 'pure' makes it pure but there doesn't seem to be a way to make it const? > > Does Fortran support setting the rounding mode? > > In C, sin is not const because it depends on the current rounding > mode. It is (well

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Szabolcs Nagy
On 15/06/18 08:59, Florian Weimer wrote: * Richard Biener: 'pure' makes it pure but there doesn't seem to be a way to make it const? Does Fortran support setting the rounding mode? yes, but vec math is only enabled with -ffast-math (so it can assume -fno-rounding-math) In C, sin is not c

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Richard Biener
On Fri, Jun 15, 2018 at 10:39 AM Szabolcs Nagy wrote: > > On 15/06/18 08:59, Florian Weimer wrote: > > * Richard Biener: > > > >> 'pure' makes it pure but there doesn't seem to be a way to make it const? > > > > Does Fortran support setting the rounding mode? > > > > yes, but vec math is only enab

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Florian Weimer
* Richard Biener: > That said, good to see some glibc folks jump in on this thread. > I'd like to see glibc provide a fortran intrinsic header advertising > the libmvec routines it has. We probably do need some gfortran > adjustments here but I think that glibc advertising is better than > hard-c

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Richard Biener
On Fri, Jun 15, 2018 at 11:08 AM Florian Weimer wrote: > > * Richard Biener: > > > That said, good to see some glibc folks jump in on this thread. > > I'd like to see glibc provide a fortran intrinsic header advertising > > the libmvec routines it has. We probably do need some gfortran > > adjust

Re: How to get GCC on par with ICC?

2018-06-15 Thread Wilco Dijkstra
Martin wrote: > Keep in mind that when discussing FP benchmarks, the used math library > can be (almost) as important as the compiler. In the case of 481.wrf, > we found that the GCC 8 + glibc 2.26 (so the "out-of-the box" GNU) > performance is about 70% of ICC's. When we just linked against AMD

Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Richard Biener
Hi, I'm in the process of changing the vectorizer to consider all vector sizes as advertised by targetm.autovectorize_vector_sizes and to decide which one to use based on its cost model. I expect that to make sense for example when choosing between AVX128 and AVX256 since the latter may have pe

Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Jan Hubicka
> > Hi, > > I'm in the process of changing the vectorizer to consider all > vector sizes as advertised by targetm.autovectorize_vector_sizes > and to decide which one to use based on its cost model. > > I expect that to make sense for example when choosing between > AVX128 and AVX256 since the l

Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Richard Biener
On Fri, 15 Jun 2018, Jan Hubicka wrote: > > > > Hi, > > > > I'm in the process of changing the vectorizer to consider all > > vector sizes as advertised by targetm.autovectorize_vector_sizes > > and to decide which one to use based on its cost model. > > > > I expect that to make sense for exam

Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Richard Earnshaw (lists)
On 15/06/18 12:48, Richard Biener wrote: > > Hi, > > I'm in the process of changing the vectorizer to consider all > vector sizes as advertised by targetm.autovectorize_vector_sizes > and to decide which one to use based on its cost model. > > I expect that to make sense for example when choosin

Re: How to get GCC on par with ICC?

2018-06-15 Thread Jeff Law
On 06/15/2018 05:39 AM, Wilco Dijkstra wrote: > Martin wrote: > >> Keep in mind that when discussing FP benchmarks, the used math library >> can be (almost) as important as the compiler. In the case of 481.wrf, >> we found that the GCC 8 + glibc 2.26 (so the "out-of-the box" GNU) >> performance i

Re: How to get GCC on par with ICC?

2018-06-15 Thread Joseph Myers
On Fri, 15 Jun 2018, Jeff Law wrote: > And resolution on -fno-math-errno as the default. Setting errno can be > more expensive than people realize. I don't think I saw any version of the -fno-math-errno patch proposal that included the testsuite updates I'd expect. Certainly gcc.dg/torture/pr

Gcc Plugin Api

2018-06-15 Thread Shubham Narlawar
Hello all, I have been figuring out to work on some project. So while searching I found GCC Plugin API project quite interesting. So, please can I get some more information and links about gcc Plugin API project. Can anyone help me please.

Re: Gcc Plugin Api

2018-06-15 Thread U.Mutlu
Shubham Narlawar wrote on 06/15/2018 08:01 PM: Hello all, I have been figuring out to work on some project. So while searching I found GCC Plugin API project quite interesting. So, please can I get some more information and links about gcc Plugin API project. Can anyone help me please. Here's a

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Thomas Koenig
Hi Richard, First and foremost we need a syntax that actually works for the Fortran frontend and a way to automatically include this special header / module. I can imagine parsing the relevant headers while compiling gfortran and generating C code from it, which could then be #included in the

Re: libmvec in gcc to have vector math in fortran

2018-06-15 Thread Joseph Myers
On Fri, 15 Jun 2018, Thomas Koenig wrote: > Hi Richard, > > > First and foremost we need a syntax that actually works for the > > Fortran frontend and a way to automatically include this special > > header / module. > > I can imagine parsing the relevant headers while compiling gfortran > and ge

gcc-8-20180615 is now available

2018-06-15 Thread gccadmin
Snapshot gcc-8-20180615 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/8-20180615/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-8