From 5286880cda14bf5be02e6c25cd9685b2e40ba58c Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 14 Mar 2017 16:42:04 +0100 Subject: [PATCH] Threads slowed constraints generation --- src/sdps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdps.jl b/src/sdps.jl index 873d41d..5e61771 100644 --- a/src/sdps.jl +++ b/src/sdps.jl @@ -22,7 +22,7 @@ function constraints_from_pm(pm, total_length) n = size(pm,1) constraints = constraints = [Array{Int,1}[] for x in 1:total_length] for j in 1:n - Threads.@threads for i in 1:n + for i in 1:n idx = pm[i,j] push!(constraints[idx], [i,j]) end