help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parallel pkg unexplainable error


From: Moritz Keuthen
Subject: Re: parallel pkg unexplainable error
Date: Mon, 15 Sep 2014 16:53:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Am 15.09.2014 um 16:37 schrieb Juan Pablo Carbajal:
On Mon, Sep 15, 2014 at 10:22 AM, Moritz Keuthen <address@hidden> wrote:
Hello,

I am using the octave package parallel and have had increasingly problems. 
Quite a lot of my last test runs aborted with the following error:

parcellfun: 9/13 jobs doneerror: invalid conversion from real matrix to real 
scalar
error: file id must be a file object, std::string, or integer value
warning: broken pipe
warning: broken pipe
warning: broken pipe
warning: broken pipe
error: called from:
error: /home/hpc/t1313/di34koy/octave/parallel-2.2.0/parcellfun.m at line 334, 
column 11

The error is not replicable (running the same program again won't necessarily 
produce the error at the same iteration) and has appeared in different pipes, 
e.g.

parcellfun: 12/13 jobs doneerror: invalid conversion from real matrix to real 
scalar
error: file id must be a file object, std::string, or integer value
warning: broken pipe
error: called from:
error: /home/hpc/t1313/di34koy/octave/parallel-2.2.0/parcellfun.m at line 334, 
column 11

I am using octave 3.8.1 and parallel 2.2.0. It seems to me that the problem 
lies somewhere in the parallel code, but I am not an expert (;

I would be deeply grateful if someone could help me with the issue.

Regards
Moritz Keuthen
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
We need to see the code that is generating the "file id". It might be
that you are doing this automatically and you have a bug there.

Hey,

I am not sure I understand your question correctly. This is how I employ the pararrayfun:

p.ArmijoBeta = 0.5;
p.nArmijoProc = 13;
...
    parTs = deltaT * p.ArmijoBeta.^(0 : p.nArmijoProc - 1);
    errorHandler = @(s, curT) deal (NA, s);
    handler = @(curT) getCostForStep (curT, input);

      [output] = pararrayfun (p.nArmijoProc, handler, parTs, ...
                                     "UniformOutput", false, ...
                                     "ErrorHandler", errorHandler);

The rest is handled by the parallel package.

Regards
Moritz Keuthen








reply via email to

[Prev in Thread] Current Thread [Next in Thread]