Okay, one mistake I made was to specify [1:6] in the arguments when I
should have done [2:7] as worker threads are indexed from 2. But, I am yet
to figure how to assign worker ids in a horizontal manner.
ᐧ

Regards,
Kapil Agarwal

On Thu, Nov 20, 2014 at 6:00 PM, Kapil Agarwal <[email protected]> wrote:

> Hi
>
> I am facing a similar problem, so I am not starting a new thread.
>
> julia> addprocs(6);
> julia> b=rand(6,6);
> julia> c=distribute(b,[1:6],(2,3))
> #using the distribute function as mentioned in this thread
>
> This does not work as expected. Firstly, the matrix is distributed among
> the master process as well as the worker processes i.e. process 1 also get
> a portion of the array while I want the array to be distributed only among
> the worker threads. Secondly, I want workers to be assigned horizontally
> while they are assigned vertically i.e. the assignment is as follows
> 1 3 5
> 2 4 6
> while I want it to be as
> 2 3 4
> 5 6 7
>
> Is there a way to do this ?
>
> Thanks
>
>
>

Reply via email to