pass only the i-th column in @parallel mode

this cuts on memory per worker drastically
This commit is contained in:
kalmarek 2017-11-05 19:28:51 +01:00
parent c3ea80e6a9
commit f7f9ceef07
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@ function compute_SOS(Q::AbstractArray, pm::Array{Int,2}, l::Int)
@everywhere groupring_square = PropertyT.groupring_square
result = @parallel (+) for i in 1:size(Q,2)
print(" $i")
groupring_square(view(Q,:,i), l, pm)
groupring_square(Q[:,i], l, pm)
end
println("")