From 90fc2174dface0b801c8cf06fcc576e5c8cb609f Mon Sep 17 00:00:00 2001 From: yeom Date: Fri, 8 Oct 2010 21:03:37 +0000 Subject: [PATCH] changes on moldyn. --- .../oooJava/moldyn/JGFMolDynBench.java | 30 ++++++++++++++++--- Robust/src/Benchmarks/oooJava/moldyn/allrun | 17 +++++++++++ Robust/src/Benchmarks/oooJava/moldyn/makefile | 4 +-- 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100755 Robust/src/Benchmarks/oooJava/moldyn/allrun diff --git a/Robust/src/Benchmarks/oooJava/moldyn/JGFMolDynBench.java b/Robust/src/Benchmarks/oooJava/moldyn/JGFMolDynBench.java index c658abce..75cd1d11 100644 --- a/Robust/src/Benchmarks/oooJava/moldyn/JGFMolDynBench.java +++ b/Robust/src/Benchmarks/oooJava/moldyn/JGFMolDynBench.java @@ -86,11 +86,13 @@ public class JGFMolDynBench { * boolean waitfordone=true; while(waitfordone) { if (mybarr.done) * waitfordone=false; } */ - + long start=System.currentTimeMillis(); for (int i = 0; i < numthreads; i++) { // thobjects[i].md.start(mid[i]); thobjects[i].md.run(); } + long end=System.currentTimeMillis(); +// System.out.println("Total="+(end-start)); } public void JGFvalidate() { @@ -344,10 +346,14 @@ class mdRunner { /* MD simulation */ + JGFMolDynBench l_mymd=mymd; + int numP= (mdsize / workload)+1; double scratchpad[][][]; scratchpad=new double[numP][3][mdsize]; + + long par_time=0; for (int move = 0; move < movemx; move++) { /* move the particles and update velocities */ @@ -368,6 +374,11 @@ class mdRunner { int lworkload = workload; // for (int i=0+id;i