octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #58244] [octave forge] (parallel) compilation


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #58244] [octave forge] (parallel) compilation warnings during build with version 6
Date: Wed, 29 Apr 2020 05:50:58 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763

Follow-up Comment #2, bug #58244 (project octave):

so it appears that 4.0.0 with octave-6 and later does not throw errors yet.
e.g.


pkg load parallel;
pkg_ver = ver('parallel')
ver = version

vec = 1:2;
try
  cf_out = arrayfun(@(x) x(2), vec)
catch me
  fprintf('arrayfun threw an error\n');
end

try
  pcf_out = pararrayfun(3, @(x) x(2), vec)
catch me
  fprintf('pararrayfun threw an error\n');
end


with 5.2.1 and 3.1.3 both arrayfun and pararrayfun throw errors:


pkg_ver = scalar structure containing the fields:
    Name = parallel
    Version = 3.1.3
    Release = [](0x0)
    Date = 2018-08-03
ver = 5.2.1

arrayfun threw an error
parcellfun: 0/2 jobs done
warning: parcellfun: unhandled error in subprocess 2

pararrayfun threw an error


with 6.0.0 and 4.0.0 arrayfun throws an error in this example, and pararrayfun
does not and produces output. pararrayfun does provide more informative error
messages on what went wrong in the children than 3.1.3


pkg_ver = scalar structure containing the fields:
    Name = parallel
    Version = 4.0.0
    Release = [](0x0)
    Date = 2020-04-11

ver = 6.0.1
arrayfun threw an error
error: x(2): out of bound 1
error: x(2): out of bound 1
pcf_out =
  -1  -1



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58244>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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