From f7f9ceef070b79637b04c161ec25123a57bce10f Mon Sep 17 00:00:00 2001 From: kalmarek Date: Sun, 5 Nov 2017 19:28:51 +0100 Subject: [PATCH] pass only the i-th column in @parallel mode this cuts on memory per worker drastically --- src/CheckSolution.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CheckSolution.jl b/src/CheckSolution.jl index d9078a6..0a7e32e 100644 --- a/src/CheckSolution.jl +++ b/src/CheckSolution.jl @@ -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("")