Re: food for optimizer developers

2010-08-12 Thread Ralf W. Grosse-Kunstleve
Hi Vladimir, Thanks for the feedback! Very interesting. Intel optimization compiler team (besides researchers) is much bigger than whole GCC community. That's a surprise to me. I have to say that the GCC community has done amazing work, as you came within factor 1.4 (gfortran) and 1.6 (g++

Re: food for optimizer developers

2010-08-12 Thread Ralf W. Grosse-Kunstleve
Hi Steve, Can you tell how you obtained the performance numbers you are using? There may be a few compiler flags you could add to reduce that ratio of 1.4 to something better. Without knowing the compiler options, the results of any benchmark are meaningless. I used gfortran -o

Re: food for optimizer developers

2010-08-11 Thread Ralf W. Grosse-Kunstleve
Hi Tim, Do you mean you are adding an additional level of functions and hoping for efficient in-lining? Note that my questions arise in the context of automatic code generation: http://cci.lbl.gov/fable Please compare e.g. the original LAPACK code with the generated C++ code to see why the

Re: food for optimizer developers

2010-08-11 Thread Ralf W. Grosse-Kunstleve
Hi Richard, How about using an automatic converter to arrange for C++ code to call into the generated Fortran code instead? Create nice classes and wrappers and such, but in the end arrange for the Fortran code to be called to do the real work. I found it very labor intensive to maintain a

food for optimizer developers

2010-08-10 Thread Ralf W. Grosse-Kunstleve
I wrote a Fortran to C++ conversion program that I used to convert selected LAPACK sources. Comparing runtimes with different compilers I get: absolute relative ifort 11.1.0721.790s1.00 gfortran 4.4.42.470s1.38 g++ 4.4.4

Re: food for optimizer developers

2010-08-10 Thread Ralf W. Grosse-Kunstleve
...@gmail.com To: Ralf W. Grosse-Kunstleve r...@yahoo.com Cc: gcc@gcc.gnu.org Sent: Tue, August 10, 2010 8:47:18 PM Subject: Re: food for optimizer developers On Tue, Aug 10, 2010 at 6:51 PM, Ralf W. Grosse-Kunstleve r...@yahoo.com wrote: I wrote a Fortran to C++ conversion program that I used to convert

g++ 4.3.0 error: changes meaning

2007-09-20 Thread Ralf W. Grosse-Kunstleve
I'm testing our C++ code with g++ (GCC) 4.3.0 20070919 (experimental) That's SVN revision 128608, gcc_trunk. I'm getting many errors like this: % g++ -c changes_meaning.cpp changes_meaning.cpp:8: error: declaration of 'typedef struct ns::foodouble ns::bar::foo' changes_meaning.cpp:4: error:

Re: g++ 4.3.0 error: changes meaning

2007-09-20 Thread Ralf W. Grosse-Kunstleve
Andrew Pinski wrote: Yes it is intentional. It is an extension of an already existing error with non templates. The code is invalid, though the C++ standard does make a mention, this does not have to be diagnostic. Thanks for the quick reply! This is great, I like the change since it

Trap floating-point exceptions?

2007-09-16 Thread Ralf W. Grosse-Kunstleve
Under Linux, gcc/g++-compiled code happily continues running after producing NAN and INF. Often it is time-consuming to backtrack to the actual source of the numerical problems. In addition, such problems may go undetected for some time, which can cause all kinds of confusion. Other platforms