bugGNU Octave - Bugs: bug #58238, [octave forge] (parallel) 4.0.0...

 
 

bug #58238: [octave forge] (parallel) 4.0.0 can't find command line functions

Submitter:  Mark van Rossum <cosine>
Submitted:  Fri 24 Apr 2020 10:13:37 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 26 Apr 2020 09:26:23 AM UTC, comment #2: 

Hi
Thank for looking into this.

It would be good if this behavior were documented, as it is different from older versions, and suddenly scripts that work fine with arrayfun calls, won't with pararrayfun calls.

Mark van Rossum <cosine>
Sat 25 Apr 2020 05:22:01 PM UTC, comment #1: 

This is expected. It worked before because forked Octave sessions were used. But using forked Octave sessions has been abandoned since it can cause other problems.

Olaf Till <i7tiol>
Group Member
Fri 24 Apr 2020 10:13:37 PM UTC, original submission:  

Hi

The latest iteration of the parallel forge package breaks  scripts in which the function to be called is defined in the same file.

A full script that shows the issue is attached, but the basic structure of the file is:


function y=fun(x)
 y=x
end

pararrayfun(nproc,@(x)fun(x),x_ar)


error: 'fun' undefined

Note 1, this worked ok in version 3.1.3.

Note 2, defining the function in separate file solves the problem.


Mark van Rossum <cosine>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #48929:  bug2.m added by cosine (343B - application/vnd.wolfram.mathematica.package)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by cosine
  • -email is unavailable- added by cosine (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-25 i7tiol StatusNone Wont Fix
        Open/ClosedOpen Closed
    2020-04-25 mtmiller SummaryOctave forge parallel 4.0.0 can't find local functions [octave forge] (parallel) 4.0.0 can't find command line functions
    2020-04-25 cosine Carbon-Copy- Added -email is unavailable-
    2020-04-24 cosine Attached File- Added bug2.m, #48929

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code