[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: |
Wed, 10 Feb 2021 19:53:36 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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.
>
> 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
signature.asc
Description: PGP signature