[petsc-dev] CFLAGS and COPTFLAGS
Jed Brown
jed at jedbrown.org
Fri Jan 17 18:05:50 CST 2014
Barry Smith <bsmith at mcs.anl.gov> writes:
> The problem is that CFLAGS can have all kind of flags having
> nothing to do with optimization.
Right. Do we really need to classify and do things differently?
> Could we do the following?
>
> Look through any provided CFLAGS (FFLAGS, CXXFLAGS) if we detect
> something that looks like optimization then act as if COPTFLAGS was
> set and do not set our own optimization default flag? We can also
> keep support for the COPTFLAGS stuff
>
> We can look for -O%d , are there other things to look for? This seems easy enough to add.
-ftree-vectorize, -fast, -qhot -qsimd=auto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140117/30b588e9/attachment.sig>
More information about the petsc-dev
mailing list