public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sébastien Fabbro" <bicatali@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit	in	sys-cluster/openmpi: ChangeLog openmpi-1.1.1.ebuild openmpi-1.2.4.ebuild
Date: Fri, 14 Dec 2007 16:16:47 +0000	[thread overview]
Message-ID: <4762AC6F.9020206@gentoo.org> (raw)
In-Reply-To: <1197641559.16649.10.camel@vega.lnet>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/12/07 14:12, Matthias Langer wrote:

> F77="ifort" FC="ifort" FFLAGS="-O3 -xO" emerge -av openmpi

This how it should be. To make it automatically reproducible, specify
environment variables in the configuration files.

> Maybe someone can explain to me what positive side effects the removal
> of the ifc USE flag has - and why this flag is generally discouraged.

Positive side effect: avoid cluttering the tree. Why icc/ifc are
discouraged: you can always try to compile every C/C++ package with
CC=icc and fortran packages with F77=ifort or FC=ifort. Packages which
do specify more options with e.g. --enable-icc and friends can be easily
worked out with the toolchain-funcs and fortran eclass, and most of the
time they do nothing more than specify the environment variables.

If we allow icc/ifc flags, at some point, we could allow a whole bunch
of other compiler flags such as "sunstudio". New keywords for compilers
could be a better idea, but I doubt we have the human resources to test
them.

> The reason it disappeared is that it makes gfortran horribly slow when
> compiling against mpi. This is not the case with ifc, and therefore the
> old ebuild in bugzilla emitted a bold warning when emerging with
> USE="-ifc f90-typesafe" but kept quiet if USE="ifc f90-typesave". Thus
> it *did make sense* to control it with a USE flag, at least with the
> "ifc" USE flag being around also.

If the f90-typesafe options always improve compilation time with
gfortran only,  why not using something like this (modified from the
openmpi bump bug):

if use fortran; then
	case ${FORTRANC} in
		g77) myconf="${myconf} --disable-mpi-f90" ;;
		gfortran) myconf="${myconf} --with-mpi-f90-size=medium" 				
myconf="${myconf} --with-f90-max-array-dim=4" 				  ;;
		if*) myconf="${myconf} blah" ;;
		*) die "unsupported fortran compiler: ${FORTRANC}"
	esac
else
	myconf="${myconf} --disable-mpi-f90 --disable-mpi-f77"
fi

Let the ebuild make reasonable choices instead of making a user trying
to find out about undocumented use flags.

- --
Sébastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYqxv1ycZbhPLE2ARAlRRAJ9BySHhbxAzLOgJdG4I2L3RpCPPNwCgi8aF
v3OgmxW4UZj1Gqf7Pg2vBWE=
=vYF+
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-12-14 16:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1J2dWi-0006Ue-Fk@stork.gentoo.org>
2007-12-13  9:18 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: ChangeLog openmpi-1.1.1.ebuild openmpi-1.2.4.ebuild Donnie Berkholz
2007-12-14 10:24   ` Matthias Langer
2007-12-14 12:13     ` Sébastien Fabbro
2007-12-14 14:12       ` Matthias Langer
2007-12-14 16:16         ` Sébastien Fabbro [this message]
2007-12-14 17:12           ` Matthias Langer
2007-12-14 19:52             ` Sébastien Fabbro
2007-12-15  1:51               ` Duncan
2007-12-14 14:53       ` [gentoo-dev] " Justin Bronder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4762AC6F.9020206@gentoo.org \
    --to=bicatali@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox