[mpich-discuss] Compiler optimization flags in MPICH 3.0 rc1

Darius Buntinas buntinas at mcs.anl.gov
Fri Nov 16 11:41:30 CST 2012


The --enable-strict flag adds -O2.  Try --enable-strict=noopt.

-d


On Nov 15, 2012, at 7:06 PM, Yauheni Zelenko wrote:

> Hi!
> 
> I tried to build optimize and debug version of MPICH 3.0 rc1 and noticed some problems with compiler optimization flags. Looks like -O2 is set implicitly.
> 
> For optimize configuration command like contains -O2 and -O3:
> 
> ./configure --prefix=${InstallDir}                                              \
>        --with-pm=hydra --with-device=ch3:nemesis                               \
>        --disable-chekpointing                                                  \
>        --enable-strict --enable-fast=O3                                        \
>        --disable-f77 --disable-fc                                              \
>        CC=${GCCDir}/bin/gcc CFLAGS="-m32 -fPIC"                                \
>        CPP=${GCCDir}/bin/cpp                                                   \
>        CXX=${GCCDir}/bin/g++ CXXFLAGS="-m32 -fPIC"                             \
>        CXXCPP=${GCCDir}/bin/cpp
> 
> For debug one -O2, but optimization is disabled:
> 
> ./configure --prefix=${InstallDir}                                              \
>        --with-pm=hydra --with-device=ch3:nemesis                               \
>        --disable-chekpointing                                                  \
>        --enable-strict --disable-fast -enable-g=debug                          \
>        --disable-f77 --disable-fc                                              \
>        CC=${GCCDir}/bin/gcc CFLAGS="-m32 -fPIC"                                \
>        CPP=${GCCDir}/bin/cpp                                                   \
>        CXX=${GCCDir}/bin/g++ CXXFLAGS="-m32 -fPIC"                             \
>        CXXCPP=${GCCDir}/bin/cpp
> 
> Eugene.
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss




More information about the discuss mailing list