[mvapich-discuss] how to build mvapich2-2.0 with specific microarchitecture

Jonathan Perkins perkinjo at cse.ohio-state.edu
Fri Jun 27 20:42:22 EDT 2014


Hello there.  You can use these flags to set the -march=nehalem option if
you'd like to prevent your MPI applications from also having this option
set.  Otherwise you can just use CFLAGS, CXXFLAGS and friends directly.


On Fri, Jun 27, 2014 at 8:09 PM, Guo, Gcwenken <gcwenken.guo at ttu.edu> wrote:

>  Hi:
>     I read some gcc optimization documents. And they said that gcc does
> not detect microarchitecture by default. In order to obtain the best
> performance, I need to tell gcc by passing -march=nehalem to CFLAGS
> (because I know that all the cpus in the supercomputer are the same and
> support intel nehalem microarchitecture). However, how to tell
> mvapich2-2.0 configure that such special requirement? At first, I
> ./configure --help and find out that:
>
> MPICHLIB_CFLAGS
>             extra CFLAGS used in building MVAPICH libraries
> MPICHLIB_CXXFLAGS
>             extra CXXFLAGS used in building MVAPICH libraries
> MPICHLIB_FFLAGS
>             extra FFLAGS used in building MVAPICH libraries
> MPICHLIB_FCFLAGS
>             extra FCFLAGS used in building MVAPICH libraries
>
> so, I think  ./configure MPICHLIB_CFLAGS=-march=nehalem MPICHLIB_CXXFLAGS=
> -march=nehalem  MPICHLIB_FFLAGS=-march=nehalem MPICHLIB_FCFLAGS=-march=nehalem
> is appropriate.
>
> But it looks like stupid and easy to make mistake, is there any method to
> pass microarchitecture information to all to all internal compiler flags?
>
> Thank you very much
>
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>


-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20140627/cd5ac7c5/attachment.html>


More information about the mvapich-discuss mailing list