octave-maintainers
[Top][All Lists]
Advanced

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

Re: Parallel package suggestion


From: Olaf Till
Subject: Re: Parallel package suggestion
Date: Fri, 12 Feb 2021 15:28:43 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Feb 10, 2021 at 07:53:36PM +0100, Olaf Till wrote:
> On Sat, Feb 06, 2021 at 12:46:40PM -0600, vrozos wrote:
> > Regarding Parallel package [1], I have a suggestion.  On my understanding
> > (from applications on a single machine), Parallel starts Octave sub-engines.
> > When the whole job is finished, the sub-engines do not die. This can create
> > problems in cases where a kind of re-initialization is needed.
> > 
> > Consider this case. I am using Parallel along with the expansion of the
> > Genetic Algorithm package for GNU Octave that supports parallelization and
> > bounds [2]. After finishing the first optimization, I want to change the
> > loss-function. In this case, it seems that the sub-engines are not informed
> > about the change. They keep using the version of the loss-function they
> > first encountered.

Thinking about this -- probably the sub-engine Octaves should see such
a change, just as the main Octave session should see it, without
re-initialization. You could test if the main Octave session sees the
change.

Olaf

> > I would suggest adding a function to Parallel package that would perform
> > some kind of re-initialization of the created sub-engines, or at least kill
> > them.
> 
> But there is such a function:
> 
> https://octave.sourceforge.io/parallel/package_doc/parcellfun_005fset_005fnproc.html#XREFparcellfun_005fset_005fnproc
> 
> Olaf
> 
> -- 
> public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net



-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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