It appears that the multiple for loop syntax isn't supported for @parallel 
... I found this issue: https://github.com/JuliaLang/julia/issues/10109

I'm brand new to Julia, so take this warning with that in mind, but I would 
also be cautious writing to "mapa" inside your parallel for loop, as each 
process will have a different copy of the Array, as described here in the 
documentation: 
http://julia.readthedocs.org/en/latest/manual/parallel-computing/#parallel-map-and-loops

Cheers,
Dan

On Sunday, 11 October 2015 11:34:27 UTC-3, paul analyst wrote:
>
> Like here , what wrong ?
> k=100
> mapa=zeros(k,k)
>
> julia> @parallel for i=1:k,j=1:k
>        mapa[i,j]=sqrt(sum([D[i,:]-D[j,:]].^2))
>        end
> ERROR: syntax: invalid assignment location
>
> Paul
>

Reply via email to