List Info

Thread: LAM: LD_LIBRARY_PATH for lamd




LAM: LD_LIBRARY_PATH for lamd
user name
2006-07-11 16:27:53
Hi Dennis,

>>On Mon, 10 Jul 2006, Dennis van Dok wrote:
>>    
>>
>>>Is it possible to have LD_LIBRARY_PATH set up
for each instance of
>>>lamd on my nodes? That way, if a process is
started by lamd, and by
>>>inheritence of the environment,
>>>      
>>>
I'm neither ssh nor NFS expert, but I have used sometimes
the 
~/.ssh/environment facility (man ssh, sections
"environment" and 
"files", near the end)

If your user's homes are shared along the cluster (and you
don't have 
the 30s NFS update problem , perhaps
they (or the script launching 
lamboot) can create/edit the environment file, adding the
desired 
LD_LIBRARY_PATH value. I have used that facility to export
DISPLAY 
values to lamds-- the same value to all nodes, of course. It
failed 
(very) occassionally, and I thought it could be due to the
30s NFS 
update policy.

> Ideally, each version lives in its own space, so I have

> /opt/lam-6.x.x, /opt/lam-7.x.x, /opt/mpich-x.x, etc.
Now if a 
> scheduler likes to run a six-node lam-7.1.2 job, it
would issue 
> /opt/lam-7.1.2/bin/lamboot with the right parameters,
and on each of 
> the six nodes /opt/lam-7.1.2/bin/lamd would be started
(through ssh, I 
> suppose).

I think the idea could be creating ~/.ssh/environment right
before 
lamboot... and perhaps waiting 30s or reading man pages for
sync and NFS 
,
before launching lamboot. Isn't it?

> Now lamd is linked with /opt/lam-7.1.2/lib/liblam.so.0,
which it can 
> find on merit of its RPATH, 

Hmm, I wish I knew about linking like Jeff and you do...
I'm still 
re-reading your previous dialogue 

Hope it helps. This is also for the Rmpi software?

-javier
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
LAM: LD_LIBRARY_PATH for lamd
user name
2006-07-12 07:29:34
Javier Fernández Baldomero wrote:
atc.ugr.es" type="cite">
Hi Dennis,

  
On Mon, 10 Jul 2006, Dennis van Dok wrote:
   

      
Is it possible to have LD_LIBRARY_PATH set up for each instance of
lamd on my nodes? That way, if a process is started by lamd, and by
inheritence of the environment,
     

        
I'm neither ssh nor NFS expert, but I have used sometimes the 
~/.ssh/environment facility (man ssh, sections "environment" and 
"files", near the end)
  
Yes, I've seen it. But in my situation this option fails on two points:
a) It requires just-in-time mangling of files to tweak the login environment, like you suggest. In that respect it is no different from modifying .bashrc.
b) it is up to the site administrators to permit the use of .ssh/environment (option PermitUserEnvironment). In grid computing, with hundreds of different sites (and policies) that is almost guaranteed to fail _somewhere_.


atc.ugr.es" type="cite">
Now lamd is linked with /opt/lam-7.1.2/lib/liblam.so.0, which it can 
find on merit of its RPATH, 
    

Hmm, I wish I knew about linking like Jeff and you do... I'm still 
re-reading your previous dialogue 
  
Yes, it's a very technical issue. It wouldn't be so tough if I had just one version of mpi!
atc.ugr.es" type="cite">
Hope it helps. This is also for the Rmpi software?
  
Indeed.

Dennis.
-- 
D.H. van Dok :: Software Engineer :: www.nikhef.nl :: www.vl-e.nl

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )