Gentoo Archives: gentoo-cluster

From: Alexey Shvetsov <alexxyum@×××××.com>
To: gentoo-cluster@l.g.o
Subject: Re: [gentoo-cluster] Re: eselect-mpi issues
Date: Fri, 20 Jun 2008 20:51:09
Message-Id: df02a1a80806201351v3f6475e4kbff72408d0139a04@mail.gmail.com
In Reply to: Re: [gentoo-cluster] Re: eselect-mpi issues by Eric Thibodeau
1 hi all!
2
3 May be it will be better if we can choose combinations mpi_imp/compiler
4 for example
5 mpi-openmpi-gcc
6 mpi-openmpi-intel
7 and so on
8
9 for now it can be done manualy specifing CC, Fc and so on env
10 may be it will be better if it will be done from empi?
11
12 2008/6/16 Eric Thibodeau <kyron@××××××××.com>:
13 > Justin Bronder wrote:
14 >
15 > On 12/06/08 11:28 -0700, Bryan Green wrote:
16 >
17 >
18 > Hello,
19 >
20 > I'm beginning to give empi/eselect-mpi a try. Bravo, Justin, for making
21 > these!
22 >
23 >
24 > Thanks for trying them out, I'm hoping someone else finds them as useful as
25 > I
26 > have.
27 >
28 >
29 > It is planned to be part of the Gentoo Clustering LiveCD ;)
30 >
31 >
32 >
33 > I've run into one bug in eselect-mpi that effects csh users (a popular
34 > shell where I work). There is simply one setenv line that has bash syntax
35 > rather than csh syntax. I already submitted a bug: its bug 226105.
36 > Here is the patch to fix it:
37 >
38 > ================================================
39 > --- files/mpi.eselect-0.0.3 (revision 1137)
40 > +++ files/mpi.eselect-0.0.3 (working copy)
41 > @@ -161,7 +161,7 @@
42 > setenv PATH "${binpath}"
43 > setenv MANPATH "${manpath}"
44 > setenv LD_LIBRARY_PATH "${lld}"
45 > -setenv ESELECT_MPI_IMP="${1}"
46 > +setenv ESELECT_MPI_IMP "${1}"
47 > EOF
48 >
49 > echo "Remember to source ${user_ev_sh} or ${user_ev_csh}"
50 > ================================================
51 >
52 >
53 > Fixed in eselect-0.0.3-r1. Also found another mistake when setting PATH for
54 > c shells and fixed that as well.
55 >
56 >
57 >
58 > Also, in the README file, the for loop in step 6 is incorrect:
59 >
60 > for i in $(ls ${HOME}/.env.d/*); do
61 > source ${HOME}/.env.d/${i}
62 > done
63 >
64 > Results in:
65 >
66 > -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.csh: No such file or
67 > directory
68 > -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.sh: No such file or
69 > directoryA
70 >
71 >
72 > Also fixed. You might also want to check out the doc I've been working on
73 > lately, http://dev.gentoo.org/~jsbronder/empi.xml. Hopefully it's a little
74 > more up to date.
75 >
76 >
77 > Have to remember that one ;)
78 >
79 >
80 >
81 > On the system where I'm using empi, I've created files in /etc/profile.d to
82 > source the user's .env.d files when they log in. What do you think about
83 > having the eselect-mpi ebuild install these, so mpi users dont have to do
84 > that part manually? They would instead just have to source /etc/profile or
85 > /etc/csh.login after running 'eselect mpi'.
86 >
87 >
88 > Love it, I had not even thought of using this mechanism before even though I
89 > should have. It will also simplify switching from an mpi environment to one
90 > without it. I'll try to get something checked into the overlay soon,
91 > shouldn't be more than a few days.<
92 >
93 >
94 > Keep us posted because I will definitely want that version!
95 >
96 >
97 >
98 > Here are my versions of the files in /etc/profile.d:
99 >
100 > ==============
101 > mpi-config.sh
102 > ==============
103 > if [ -d ${HOME}/.env.d ]; then
104 > for i in ${HOME}/.env.d/*.sh ; do
105 > . "${i}"
106 > done
107 > unset i
108 > fi
109 >
110 > ==============
111 > mpi-config.csh
112 > ==============
113 > if ( -d ${HOME}/.env.d ) then
114 > set nonomatch
115 > foreach i ( ${HOME}/.env.d/*.csh )
116 > source ${i}
117 > end
118 > unset i nonomatch
119 > endif
120 >
121 > ==============
122 >
123 > -bryan
124 >
125 >
126 > Thanks again for testing and your comments, they're much appreciated.
127 >
128 >
129 > Yeah, thanks you both, multi-mpi-on-1-system has always plagued me too ;)
130 >
131
132
133
134 --
135 Gentoo GNU/Linux 2.6.25
136
137 Mail to
138 alexxyum@×××××.com
139 alexxy@××××××.ru
140 --
141 gentoo-cluster@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-cluster] Re: eselect-mpi issues Eric Thibodeau <kyron@××××××××.com>