Shared array example needs fixing 9841 Closed mbeltagy opened this Issue on Jan 19, 2015 ยท 2 comments Projects None yet Labels parallel Milestone No milestone Assignees No one assigned 5 participants mbeltagy ViralBShah amitmurthy tkelman ivarne Notifications mbeltagy mbeltagy commented on Jan 19, 2015 In https: github.com JuliaLang julia blob master doc manual parallel-computing.rst The example provided S SharedArray Int, 3,4 , init S - S myid -1:nworkers :length S myid produces an exception in 0.3.5 exception on 1: ERROR: BoundsError in setindex! at array-jl:323 in setindex! at sharedarray-jl:215 in anonymous at none:1 in anonymous at multi-jl:660 in run_work_thunk at multi-jl:621 in run_work_thunk at multi-jl:630 in anonymous at task-jl:6 It seems that in the latest implementation myid could start at 1 and hence a bounds error happens. This could be a possible fix. S SharedArray Int, 3,4 , init S - S myid :nworkers :length S myid ViralBShah The Julia Language member ViralBShah commented on Jan 19, 2015 Cc: amitmurthy ViralBShah ViralBShah added the parallel label on Jan 19, 2015 amitmurthy amitmurthy added a commit that closed this issue on Jan 26, 2015 amitmurthy closes 9841. ci skip baba413 amitmurthy amitmurthy closed this in baba413 on Jan 26, 2015 amitmurthy The Julia Language member amitmurthy commented on Jan 26, 2015 Thanks mbeltagy . Fixed in master, should be backported in the next 0.3 release. tkelman tkelman added backport pending and removed backport pending labels on Jan 26, 2015 ivarne ivarne added backport pending and removed backport pending labels on Jan 28, 2015 amitmurthy amitmurthy added a commit that referenced this issue on Feb 1, 2015 amitmurthy closes 9841. ci skip