Compiler Optimization Override

2007-10-04 Thread Berend van Wachem
Hi Tim, >> Ideally I would prefer a solution which doesn't involve rebuilding PETSc >> each >> time I want to switch the optimization level. I tried to add the switch to >> the petscrules file but it always defaulted to the first (lower?) >> optimization switch that appeared in the applicatio

Compiler Optimization Override

2007-10-04 Thread Barry Smith
It seems the config/configure.py options -COPTFLAGS, -CXXOPTFLAGS, -FOPTFLAGS work correctly. That is if you set them then the default optimization is turned off and what you provide is used. This works with petsc-dev. If this does not work for someone please send configure.log so we can res

Compiler Optimization Override

2007-06-27 Thread Tim Stitt
Hi Aron, Thanks for the information...everything is clear now. Hope you will be back to Ireland soon. Sure the weather can be miserable but nothing beats a good hike in the rain followed by a good pint of Guinness. Actually Guinness is pretty good with everything including PETSc coding :-) Reg

Compiler Optimization Override

2007-06-27 Thread Tim Stitt
Perfect...thanks for the info. On Wednesday 27 June 2007 14:21, Satish Balay wrote: > On Wed, 27 Jun 2007, Tim Stitt wrote: > > Hi PETSc Users/Developers, > > > > Could someone explain how I can override the default optimization level > > that comes with my PETSc build (currently -O). I want to se

Compiler Optimization Override

2007-06-27 Thread Tim Stitt
Hi PETSc Users/Developers, Could someone explain how I can override the default optimization level that comes with my PETSc build (currently -O). I want to set a more aggressive optimization level (e.g. -O3) for my compiler (PathScale). Ideally I would prefer a solution which doesn't involve re

Compiler Optimization Override

2007-06-27 Thread Aron Ahmadia
And as a correction to my last email, PETSC_ARCH is a 'global' environment variable, it along with PETSC_DIR help you coordinate multiple PETSc installations and builds. ~A On 6/27/07, Aron Ahmadia wrote: > Dear Tim, > > I was just in Ireland a few weeks ago, had a great time climbing > Carantou

Compiler Optimization Override

2007-06-27 Thread Aron Ahmadia
Dear Tim, I was just in Ireland a few weeks ago, had a great time climbing Carantouhil and the Pilgrim's Path :D Have you tried declaring a new $PETSC_ARCH and then overriding the optimization flags in ./conf/configure? PETSc likes to use the $PETSC_ARCH flag to maintain all local builds under t

Compiler Optimization Override

2007-06-27 Thread Satish Balay
On Wed, 27 Jun 2007, Aron Ahmadia wrote: > declare -x PETSC_ARCH=petsc_linux_o3 > cd $PETSC_DIR > ./config/configure.py --COPTFLAGS=-O3 > make Or you could just do: ./config/configure.py PETSC_ARCH=petsc_linux_o3 COPTFLAGS=-O3 make Satish

Compiler Optimization Override

2007-06-27 Thread Satish Balay
On Wed, 27 Jun 2007, Tim Stitt wrote: > Hi PETSc Users/Developers, > > Could someone explain how I can override the default optimization level that > comes with my PETSc build (currently -O). I want to set a more aggressive > optimization level (e.g. -O3) for my compiler (PathScale). Rebuild a