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 1K6rXc-0002iU-GI for garchives@archives.gentoo.org; Thu, 12 Jun 2008 18:28:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC5BCE0747; Thu, 12 Jun 2008 18:28:55 +0000 (UTC) Received: from ece06.nas.nasa.gov (ece06.nas.nasa.gov [129.99.105.32]) by pigeon.gentoo.org (Postfix) with ESMTP id 8FE36E0747 for ; Thu, 12 Jun 2008 18:28:55 +0000 (UTC) Received: from ece06 (localhost [127.0.0.1]) by ece06.nas.nasa.gov (Postfix) with ESMTP id 17D522395D0 for ; Thu, 12 Jun 2008 11:28:55 -0700 (PDT) To: gentoo-cluster@lists.gentoo.org Subject: [gentoo-cluster] eselect-mpi issues X-url: http://www.nas.nasa.gov/~bgreen/ Date: Thu, 12 Jun 2008 11:28:55 -0700 From: Bryan Green Message-Id: <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 X-Archives-Salt: a7c47181-807a-4f64-a875-4cba47ed77bf X-Archives-Hash: bd0213686daa9b0f177816125510d961 Hello, I'm beginning to give empi/eselect-mpi a try. Bravo, Justin, for making these! 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: ================================================ --- 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="${1}" +setenv ESELECT_MPI_IMP "${1}" EOF echo "Remember to source ${user_ev_sh} or ${user_ev_csh}" ================================================ Also, in the README file, the for loop in step 6 is incorrect: for i in $(ls ${HOME}/.env.d/*); do source ${HOME}/.env.d/${i} done Results in: -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.csh: No such file or directory -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.sh: No such file or directory 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'. Here are my versions of the files in /etc/profile.d: ============== mpi-config.sh ============== if [ -d ${HOME}/.env.d ]; then for i in ${HOME}/.env.d/*.sh ; do . "${i}" done unset i fi ============== mpi-config.csh ============== if ( -d ${HOME}/.env.d ) then set nonomatch foreach i ( ${HOME}/.env.d/*.csh ) source ${i} end unset i nonomatch endif ============== -bryan -- gentoo-cluster@lists.gentoo.org mailing list