我有几个循环,如:
for i = 1 : m
var1 = 1
var2 = 12.4
for j = 1 : n
var3=8
var4=array1[1]
for l = var1 : n
var5 = aary1[l]
var6 = arry2[l,i]+var5
if var6 > var3
var7 = var6
var8 = array1[l]
var1 = l
else
break
end
end
array3[j,i] = var7
array4[j,i] = var8
println("........")
end
end
我希望通过静态调度(@parallel for)来并行化这段代码。我如何并行这些循环?