[overture] Re: gfortran and using -O3

  • From: Caroline Yates <CYates@xxxxxxx>
  • To: "overture@xxxxxxxxxxxxx" <overture@xxxxxxxxxxxxx>, "Kyle Chand (chand1@xxxxxxxx)" <chand1@xxxxxxxx>
  • Date: Tue, 24 Jan 2012 13:19:18 +0000

Hi Kyle,

Thank you very much, this helped us a lot. 

I have just another question about gfortran v4.4.6, namely we downloaded the 
package for RHEL6 and it comes configured with:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info 
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap 
--enable-shared --enable-threads=posix --enable-checking=release 
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-gnu-unique-object 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 
--build=x86_64-redhat-linux

The person I am working with is experiencing odd issues with gfortran and I was 
wondering if you recommend that we rebuild from source, and if so, are there 
any flags you would suggest?

Thanks again for all your help!
Kind regards,
Caroline

-----Original Message-----
From: overture-bounce@xxxxxxxxxxxxx [mailto:overture-bounce@xxxxxxxxxxxxx] On 
Behalf Of Kyle K. Chand
Sent: 18 January 2012 17:22
To: overture@xxxxxxxxxxxxx
Subject: [overture] Re: gfortran and using -O3

Hi Caroline,

You can try
make FC_FLAGS_OPT=-O2 compile=opt
when building CG.

Regards,
Kyle

mailto: chand1@xxxxxxxx
phoneto: (925) 422 7740



On Jan 18, 2012, at 7:22 AM, Caroline Yates wrote:

> Can anyone advise how to change the gfortran flag -O3 to use -O2. I 
> can't seem to locate where this option is being set.
> We are running into segmentation faults using gfortran v4.4.6 while 
> trying to build CG v24. On an individual .f file compilation we are 
> getting better results compiling with -O2.
>
> Any suggestions would be most appreciated, thanks!
> Kind regards,
> Caroline
>
> ______________________________________________________________________
>
>   Caroline Yates
>   Unix Contractor
>   Schlumberger Cambridge Research
>   High Cross, Madingley Road, Cambridge, CB3 0EL
>   Tel:   +44 1223 325246
>   Mob: +44 7971 226334
> ______________________________________________________________________
>
> Registered Name: Schlumberger Cambridge Research Limited
> Registered Office: Victory House, Churchill Court, Manor Royal,   
> Crawley, West Sussex, RH10 9LU
> Registered in England and Wales No. 606177
>




Other related posts: