chiark / gitweb /
pass weight array to workers (fix semantic conflict between horizontal weight elimina...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 02:09:35 +0000 (02:09 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 02:09:35 +0000 (02:09 +0000)
main.c

diff --git a/main.c b/main.c
index 87cb8d7..b02e98c 100644 (file)
--- 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) {