>
>
> function Fprime(a; b0 = b, c0 = c)
>    F(a, b0, c0) # treating b and c above as fixed
> end 
>

Where did you define b and c? Did you define on all workers?
 

>
> (i) this does not solve my problem when the a_i's are different sizes and 
> can't be put into one array 
>

Not sure what you mean by this.

In any case, either of these 2 methods work for me:

@everywhere begin
    F(a,b,c) = a+b+c

    global const b0 = 20
    global const c0 = 200
    Fprime(a) = a+b0+c0
end

a = [1,2,3,4,5]
b = fill(10, length(a))
c = fill(100, length(a))

pmap(F,a,b,c)
pmap(Fprime,a)


Reply via email to