need fence before scall for vector mm
authorYunsup Lee <yunsup@cs.berkeley.edu>
Tue, 17 Mar 2015 21:38:04 +0000 (14:38 -0700)
committerYunsup Lee <yunsup@cs.berkeley.edu>
Tue, 17 Mar 2015 21:38:04 +0000 (14:38 -0700)
benchmarks/mm/mm_main.c

index 4fb1b1bfbcda73d1c6a9c9c8841e436f2a2f0960..1f4e28b30b200adcef80862514af2426bcba1d9a 100644 (file)
@@ -55,6 +55,8 @@ void thread_entry(int cid, int nc)
     }
   }
 
+  asm volatile("fence");
+
   printf("C%d: reg block %dx%dx%d, cache block %dx%dx%d\n",
          cid, RBM, RBN, RBK, CBM, CBN, CBK);
   printf("C%d: %d instructions\n", cid, (int)(instret));