From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K6zdS-00083y-1Y for garchives@archives.gentoo.org; Fri, 13 Jun 2008 03:07:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92B2BE015E; Fri, 13 Jun 2008 03:07:28 +0000 (UTC) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by pigeon.gentoo.org (Postfix) with ESMTP id 63F1BE015E for ; Fri, 13 Jun 2008 03:07:28 +0000 (UTC) Received: by wr-out-0506.google.com with SMTP id c37so2599419wra.26 for ; Thu, 12 Jun 2008 20:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender; bh=r71BybnBRf0AtJOBNWxdRidqnvrxdJ6ZoT/aViiPdIs=; b=bQyrh7OvpFaVfuFkK8OGL6JkVanI5FFQsXJN6W6bHXG4nAVQXMQ8BjSd9yX528ijRJ 7OEbOzZzOvPJnRcN8w6atM9XicDFAP2UMWQfl4whE3uDuN1K8CGFK2iQ/PdDA7hUmy22 v2Kbid4LNeL+QsuaWZLSDRf+QuAh1AuULTm44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:sender; b=ZrCyRYtJY9FFNCMD9r1djcfP7Qif0XKt1dJSY8tiIk7tldeTIRrAWfjXcSIoWdIdsH MBIDSw03QDCCzbespP67+z6zBGm5JRMrh2cQrlMq7JBcMYAduQa76usodmkLOxGku5Fl Z9Lw8uH/g32RibG+kNqJX0WLjNw7hOOJhhdhA= Received: by 10.90.73.17 with SMTP id v17mr1662705aga.87.1213326447885; Thu, 12 Jun 2008 20:07:27 -0700 (PDT) Received: from mejis.cold-front ( [71.233.45.118]) by mx.google.com with ESMTPS id 5sm2536695ywd.2.2008.06.12.20.07.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Jun 2008 20:07:26 -0700 (PDT) Received: by mejis.cold-front (Postfix, from userid 1000) id 1AD463C0D9; Thu, 12 Jun 2008 23:02:16 -0400 (EDT) Date: Thu, 12 Jun 2008 23:02:16 -0400 From: Justin Bronder To: gentoo-cluster@lists.gentoo.org Subject: [gentoo-cluster] Re: eselect-mpi issues Message-ID: <20080613030216.GA6808@mejis.cold-front> References: <20080612182855.17D522395D0@ece06.nas.nasa.gov> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-cluster@lists.gentoo.org Reply-to: gentoo-cluster@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20080612182855.17D522395D0@ece06.nas.nasa.gov> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Justin Bronder X-Archives-Salt: 2d82a8b3-5979-4d00-b2c8-b9d255876cd6 X-Archives-Hash: d0d25f49a6b80a72a22b30ae779d7a02 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12/06/08 11:28 -0700, Bryan Green wrote: > Hello, >=20 > I'm beginning to give empi/eselect-mpi a try. Bravo, Justin, for making > these! Thanks for trying them out, I'm hoping someone else finds them as useful as= I have. >=20 > I've run into one bug in eselect-mpi that effects csh users (a popular > shell where I work). There is simply one setenv line that has bash syntax > rather than csh syntax. I already submitted a bug: its bug 226105. > Here is the patch to fix it: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- files/mpi.eselect-0.0.3 (revision 1137) > +++ files/mpi.eselect-0.0.3 (working copy) > @@ -161,7 +161,7 @@ > setenv PATH "${binpath}" > setenv MANPATH "${manpath}" > setenv LD_LIBRARY_PATH "${lld}" > -setenv ESELECT_MPI_IMP=3D"${1}" > +setenv ESELECT_MPI_IMP "${1}" > EOF > =20 > echo "Remember to source ${user_ev_sh} or ${user_ev_csh}" > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Fixed in eselect-0.0.3-r1. Also found another mistake when setting PATH for c shells and fixed that as well. >=20 > Also, in the README file, the for loop in step 6 is incorrect: >=20 > for i in $(ls ${HOME}/.env.d/*); do > source ${HOME}/.env.d/${i} > done >=20 > Results in: >=20 > -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.csh: No such file or d= irectory > -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.sh: No such file or di= rectoryA Also fixed. You might also want to check out the doc I've been working on lately, http://dev.gentoo.org/~jsbronder/empi.xml. Hopefully it's a little more up to date. >=20 >=20 > On the system where I'm using empi, I've created files in /etc/profile.d = to > source the user's .env.d files when they log in. What do you think about > having the eselect-mpi ebuild install these, so mpi users dont have to do > that part manually? They would instead just have to source /etc/profile = or > /etc/csh.login after running 'eselect mpi'. Love it, I had not even thought of using this mechanism before even though I should have. It will also simplify switching from an mpi environment to one without it. I'll try to get something checked into the overlay soon, shouldn't be more than a few days. >=20 >=20 > Here are my versions of the files in /etc/profile.d: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > mpi-config.sh > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > if [ -d ${HOME}/.env.d ]; then > for i in ${HOME}/.env.d/*.sh ; do > . "${i}" > done > unset i > fi >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > mpi-config.csh > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > if ( -d ${HOME}/.env.d ) then > set nonomatch > foreach i ( ${HOME}/.env.d/*.csh ) > source ${i} > end > unset i nonomatch > endif >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -bryan Thanks again for testing and your comments, they're much appreciated. --=20 Justin Bronder --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkhR4zgACgkQ4MrvBE1wQ8k6RQCdFxbg62rDX8xUlgbR3G9QRg8N QIwAnjALoZQXk1G1m6icAtBGuhdDfH03 =LM1t -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- -- gentoo-cluster@lists.gentoo.org mailing list