Gentoo Archives: gentoo-cluster

From: Bryan Green <bryan.d.green@××××.gov>
To: gentoo-cluster@l.g.o
Subject: [gentoo-cluster] eselect-mpi issues
Date: Thu, 12 Jun 2008 18:28:56
Message-Id: 20080612182855.17D522395D0@ece06.nas.nasa.gov
1 Hello,
2
3 I'm beginning to give empi/eselect-mpi a try. Bravo, Justin, for making
4 these!
5
6 I've run into one bug in eselect-mpi that effects csh users (a popular
7 shell where I work). There is simply one setenv line that has bash syntax
8 rather than csh syntax. I already submitted a bug: its bug 226105.
9 Here is the patch to fix it:
10
11 ================================================
12 --- files/mpi.eselect-0.0.3 (revision 1137)
13 +++ files/mpi.eselect-0.0.3 (working copy)
14 @@ -161,7 +161,7 @@
15 setenv PATH "${binpath}"
16 setenv MANPATH "${manpath}"
17 setenv LD_LIBRARY_PATH "${lld}"
18 -setenv ESELECT_MPI_IMP="${1}"
19 +setenv ESELECT_MPI_IMP "${1}"
20 EOF
21
22 echo "Remember to source ${user_ev_sh} or ${user_ev_csh}"
23 ================================================
24
25 Also, in the README file, the for loop in step 6 is incorrect:
26
27 for i in $(ls ${HOME}/.env.d/*); do
28 source ${HOME}/.env.d/${i}
29 done
30
31 Results in:
32
33 -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.csh: No such file or directory
34 -bash: /home/bgreen/.env.d//home/bgreen/.env.d/mpi.sh: No such file or directory
35
36
37 On the system where I'm using empi, I've created files in /etc/profile.d to
38 source the user's .env.d files when they log in. What do you think about
39 having the eselect-mpi ebuild install these, so mpi users dont have to do
40 that part manually? They would instead just have to source /etc/profile or
41 /etc/csh.login after running 'eselect mpi'.
42
43
44 Here are my versions of the files in /etc/profile.d:
45
46 ==============
47 mpi-config.sh
48 ==============
49 if [ -d ${HOME}/.env.d ]; then
50 for i in ${HOME}/.env.d/*.sh ; do
51 . "${i}"
52 done
53 unset i
54 fi
55
56 ==============
57 mpi-config.csh
58 ==============
59 if ( -d ${HOME}/.env.d ) then
60 set nonomatch
61 foreach i ( ${HOME}/.env.d/*.csh )
62 source ${i}
63 end
64 unset i nonomatch
65 endif
66
67 ==============
68
69 -bryan
70
71 --
72 gentoo-cluster@l.g.o mailing list

Replies

Subject Author
[gentoo-cluster] Re: eselect-mpi issues Justin Bronder <jsbronder@g.o>