Path: news.mathworks.com!not-for-mail
From: Edric M Ellis <eellis@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Parallel configuration validation in SGE env
Date: Thu, 12 Nov 2009 16:34:33 +0000
Organization: The Mathworks, Ltd.
Lines: 36
Message-ID: <ytwtywzem7a.fsf@uk-eellis-deb5-64.mathworks.co.uk>
References: <hcrjih$ep5$1@fred.mathworks.com> <ytwvdhqfude.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hcrsl6$8d9$1@fred.mathworks.com> <ytwr5sefgln.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hcuglu$iq4$1@fred.mathworks.com> <ytwiqdpf7dl.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hcun9r$c1h$1@fred.mathworks.com> <ytweiocf1nk.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hdefi4$c27$1@fred.mathworks.com> <ytwaaytcaq4.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hdgp1a$i9p$1@fred.mathworks.com> <ytw639gc6cn.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hdhcam$ak4$1@fred.mathworks.com>
NNTP-Posting-Host: uk-eellis-deb5-64.mathworks.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: fred.mathworks.com 1258043673 10850 172.16.27.232 (12 Nov 2009 16:34:33 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 Nov 2009 16:34:33 +0000 (UTC)
X-Face: $Ahg}Iylezql"r1WV1Me5&)ng"a4v%D>==KMs-elCfj"o}$bh-VOt7lVXgLWsC?9mZ`mINT
 G6PDvca;nrgs$lfcr0l1ew'N]>nXKl}m|Zpg>,6*gLp~-N0N2*+b.iwv=u>@R$L4SEG&NYUU;lSR@u
 IHphdAy
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:CF0+VgI1paJA1t6EcCWgGkcFVvw=
Xref: news.mathworks.com comp.soft-sys.matlab:584608


"Rafael " <rafael.fritz@physik.uni-marburg.de> writes:

>> Perhaps we should take another direction: perhaps you could try executing
>> something simple like this in a shell to see what happens:
>> 
>> export MDCE_MATLAB_EXE=/path/to/matlab/bin/worker
>> qsub -N testJob -j yes -o /path/to/logfile -v MDCE_MATLAB_EXE /path/to/sgeWrapper.sh
>
> Hi, I did so: set the EXE variable and submitted sgeWrapper.sh using the
> described parameters. There has been generated an output-file, but it's just
> empty. Sorry.  Rafael

Well, that would appear to be the problem - somehow, when sgeWrapper.sh is
launched on the cluster, the worker doesn't get launched. Could you try creating
a shell script like this:

##############################################################################
#!/bin/sh
#$ -S /bin/sh
#$ -v MDCE_MATLAB_EXE

echo "Here's the environment:"
env
echo "Here's what happens when we launch the worker:"
${MDCE_MATLAB_EXE}

##############################################################################

and then submitting it using qsub as before. 

I'm surprised that not even the "Executing: " line from sgeWrapper.sh is being
printed to your output file...

Cheers,

Edric.