Re: package parallel reads init file despite --no-init-file
Kai Torben Ohlhus <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <[email protected]> |
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