From 5bab6fc9666dfd922b4b705dc75fa81d2c1351f9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Mar 2014 02:09:35 +0000 Subject: [PATCH] pass weight array to workers (fix semantic conflict between horizontal weight elimination and multicore) --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 87cb8d7..b02e98c 100644 --- a/main.c +++ b/main.c @@ -158,7 +158,7 @@ static Worker *mc_us; static void multicore_check_for_new_best(void); -#define MAX_NIOVS 3 +#define MAX_NIOVS 4 static AdjWord mc_iter_min; static int mc_niovs; static size_t mc_iovlen; @@ -179,6 +179,7 @@ static void mc_rwvsetup_outer(void) { IOV(maxhamweight, 1); IOV(mc_iter_min, 1); IOV(*adjmatrix, multicore_iteration_boundary); + IOV(*weight, m); } static void mc_rwvsetup_full(void) { -- 2.30.2