Pmap error: parallel julia

I am getting a bounds error when running a parallel function that runs fine (sequentially) for example. when i run:

parallelsol = @time pmap(i -> findividual(x,y,z), 1:50)

      

This gives me an error:

exception at 2: Exception at exception at 16: 20exception at 5 :: ERROR: BoundsError () at getindex at array.jl: 246 (repeats 2 times)

But when I run:

parallelsol = @time map(i -> findividual(prodexcint,firstrun,q,r,unempinc,VUnempperm,Indunempperm,i,VUnemp,poachedwagevec, mw,k,Vp,Vnp,reswage), 1:50)

      

It works fine. Any ideas as to why this might be happening?

+3


source to share





All Articles