Path: news.mathworks.com!not-for-mail
From: Edric M Ellis <eellis@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: parfor error message
Date: Fri, 06 Nov 2009 13:28:54 +0000
Organization: The Mathworks, Ltd.
Lines: 28
Message-ID: <ytwaayzg4tl.fsf@uk-eellis-deb5-64.mathworks.co.uk>
References: <hd0qcm$168$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 1257514134 17896 172.16.27.232 (6 Nov 2009 13:28:54 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 13:28:54 +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:/7sU03MQGB+Zp0TcnolVZDBpQ9U=
Xref: news.mathworks.com comp.soft-sys.matlab:583004


"Mr. CFD" <s2108860@student.rmit.edu.au> writes:

> I have a simulation running on a cluster using the parfor command. The
> simulation has previously run successfully with no problems, but today it was
> terminated mid-way with the following error:
>
> "The session that parfor is using has shut down"
>
> Upon further inspection, I have traced the parfor statement within the code
> which the error is referring to. I'm at a complete loss to explain the cause
> of this error. Especially, since the code has been used successfully in
> previous occasions, I have no idea how to deal with this problem. What can
> cause the parfor command to &#8216;shut-down&#8217;? Any advice please.

Are you using an interactive MATLABPOOL (i.e. calling "matlabpool open ..." in
your desktop MATLAB session)?

That error message literally means that the pool has been closed unexpectedly -
the connection to the workers simply disappeared. This could happen if a worker
crashed for example.

What sort of cluster are you running on? (Many clusters have various resource
usage limits after which they terminate jobs - maybe you're hitting one of
those?)

Cheers,

Edric.