Dear HP (sorry, only know your initials),
thank you for your kind reply. I feel that setting some local path in
the sources is not a very good idea in principle :) Anyway, your
reply helped me to solve the problem. The code snippet you presented
shows that the environment variable $OZENGINE is checked. So, I did
set the variable $OZENGINE locally on the machine which spawns the
processes to the required path, and viola -- it worked.
For the record: I found a way to query the $PATH of the remote host
seen by processes spawned by ssh.
$ ssh HOST echo $PATH
The funny thing I recovered this way is that the Mozart bin directory
is in the PATH all right, but calling any Mozart application does
fail -- for reasons I still don't understand. I will contact my admin
here with that question.
$ ssh HOST ozengine
bash: ozengine: command not found
Anyway, thank you guys for your help. Now we could run Mozart
programs on 88 CPUs in parallel -- if these CPUs would not be busy
with the processes of other guys. Which begs the renice question I
just repeated in another mail.
Best
Torsten
On May 15, 2008, at 4:10 PM, HP Wei wrote:
sorry, missed typing the file name:
the file that I modified is Remote.oz
On Thu, 15 May 2008, HP Wei wrote:
Torsten,
I can share with you my experience. It is a hack, though.
When I set up distributed computation on multiple machines
using Remote.manager,
(since I could not change the system-wise stuff),
I did the following hack.
in mozart_home_path/mozart-1.3.2/share/lib/dp/
I modified the line
case {OS.getEnv 'OZENGINE'} of false then 'a_path_to/ozengine'
the orignal line was
case {OS.getEnv 'OZENGINE'} of false then 'ozengine'
--------------------------------------------------------
I do not know if you are using Remote.manager,
but the environment variable OZENGINE may be relevant.
--hp
On Thu, 15 May 2008, Torsten Anders wrote:
Dear Raphael,
thanks for your reply. Actually, on the remote machine the
~/.bash_profile
file already did add the Mozart bin directory to PATH. My home
dir is shared
by all cluster nodes, and so are all ~/.* files. When I log into
the remote
machine by ssh then ozengine is found all right. However,
parallel search does
not work via ssh, instead I get the following error (in the
emulator on the
localhost)
bash: line 0: exec: ozengine: not found
What are likely causes for this problem besides some wrongly set
PATH?
In order to confirm that PATH is really the problem here, how can
I display
what the value of PATH is
for the remote ozengine call?
Thank you very much!
Best
Torsten
On May 15, 2008, at 2:18 PM, Raphael Collet wrote:
Dear Torsten,
When you log on a remote machine, bash runs initialization scripts
before running the command you sent. Some of those scripts are
global
to all users on those machines (like /etc/profile), some are
specific to
you (like ~/.bash_profile on that machine).
Add a command in one of those files to extend the PATH variable,
like
export PATH=$PATH:/usr/local/mozart/bin
Check the man page of bash on the remote machine to find out the
most
appropriate place to add such a line. Or maybe ask your
sysadmin, (s)he
might refuse that you modify the systemwide /etc/profile file...
Cheers,
raph
Torsten Anders wrote:
Dear all,
I am trying to do a parallel search, but fail because ozengine
is not
found on the remote host (bash error that ozengine is not
found). It is
installed OK, but I assume the Mozart bin directory is not
included in
the $PATH variable of the remote process. I confirmed that it
works on
the localhost, and indeed {OS.getEnv 'PATH'} does include the
Mozart bin
dir.
Question: How can I display and change the value of environment
variables of remotes Mozart processes?
Thank you!
Best
Torsten
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586227
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
__________________________________________________________________
_______________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
___________________________________________________________________
______________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586227
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
____________________________________________________________________
_____________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_____________________________________________________________________
____________
mozart-users mailing list mozart-
[EMAIL PROTECTED]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586227
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users