[petsc-users] petsc gcc intel and compilerflags

Jed Brown jedbrown at mcs.anl.gov
Tue May 8 07:59:05 CDT 2012

On Tue, May 8, 2012 at 1:32 AM, Manfred Gratt <manfred.gratt at uibk.ac.at>wrote:

> when I compile petsc with --with-debugging=0 with gcc and icc in configure
> there are different optimization flags set depending on compiler. So is
> with gcc -O set wich means -O1 optimization. While with icc -O3
> optimisation is set. Is there a reason only icc gets the high performance
> flag while gcc not? Are there any problems when some optimizations are
> activated on gcc?

I don't know why only -O1 is used with gcc, but you can pass COPTFLAGS='-O3
-march=native' or whatever you like to configure to make it use those
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120508/0c447a6d/attachment.htm>

More information about the petsc-users mailing list