[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: package parallel reads init file despite --no-init-file
From: |
Kai Torben Ohlhus |
Subject: |
Re: package parallel reads init file despite --no-init-file |
Date: |
Thu, 13 May 2021 11:30:41 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
On 5/12/21 2:44 PM, Jens Wulf via Help-octave wrote:> Hi,
>
> when starting Octave using --no-init-file (for example
> “octave-6.2.0.bat --no-gui --no-init-file”) and then using the parallel
> package, the parallel processes do read the init file.
>
> Is there a way to prevent this? Should I file a bug?
>
> Win10, octave 6.2.0, parallel 4.0.1
>
> Best regards,
>
> Jens
>
To my understanding of the parallel package, Octave arguments (argv) are
not regarded and it seems reasonable to file a bug report.
Please read https://octave.sourceforge.io/support-help.php
Then https://savannah.gnu.org/bugs/?group=octave&func=additem
Some thoughts of mine.
Please link this thread in your bug report
https://lists.gnu.org/archive/html/help-octave/2021-05/msg00029.html
To fix this, the content of "argv"
https://octave.org/doc/v6.2.0/XREFargv.html should be regarded by the
parallel package when creating the "Octave-sub-processes" as you describe.
The Octave binary to be called:
https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.h#l196
is set here:
https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l392
A new "instance" is constructed only given the binary:
https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l309
and appended with an "--eval" statement to be evaluated within this
instance:
https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l67
HTH,
Kai