From: yeom Date: Thu, 18 Nov 2010 22:14:55 +0000 (+0000) Subject: introduces stall site in front of loop body. later it should be done by the optimizat... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=commitdiff_plain;h=6da97f6abebea8559d986a385075bf98b65861a9 introduces stall site in front of loop body. later it should be done by the optimization phase. --- diff --git a/Robust/src/Benchmarks/oooJava/kmeans/Normal.java b/Robust/src/Benchmarks/oooJava/kmeans/Normal.java index 29925c78..29294ecb 100644 --- a/Robust/src/Benchmarks/oooJava/kmeans/Normal.java +++ b/Robust/src/Benchmarks/oooJava/kmeans/Normal.java @@ -283,6 +283,12 @@ public class Normal { // Work in parallel with other threads thread_work(args); delta = args.global_delta; + + // put stall site here rather than having inside of loop + nclusters=clusters.length; + int newCenterLen=new_centers_len.length; + int new_centersLen=new_centers.length; + // /* Replace old cluster centers with new_centers */ for (int i = 0; i < nclusters; i++) {