Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/parallel-target/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/parallel-target/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1602, Thu Nov 3 15:11:02 2011 UTC revision 1603, Thu Nov 3 17:17:07 2011 UTC
# Line 210  Line 210 
210      int nWorkers = np;      int nWorkers = np;
211      WorkerArg_t *args = (WorkerArg_t *) malloc (nWorkers * sizeof(WorkerArg_t));      WorkerArg_t *args = (WorkerArg_t *) malloc (nWorkers * sizeof(WorkerArg_t));
212      if (VerboseFlg) printf ("initializing %d workers ...\n", nWorkers);      if (VerboseFlg) printf ("initializing %d workers ...\n", nWorkers);
213      double t0 = GetTime();      double t0 = airTime();
214      wrld->numWorkers = nWorkers;      wrld->numWorkers = nWorkers;
215      wrld->numIdle = 0;      wrld->numIdle = 0;
216      for (int i = 0; i < nWorkers; i++) {      for (int i = 0; i < nWorkers; i++) {
# Line 229  Line 229 
229          pthread_cond_wait (&wrld->mainWait, &wrld->lock);          pthread_cond_wait (&wrld->mainWait, &wrld->lock);
230      pthread_mutex_unlock (&wrld->lock);      pthread_mutex_unlock (&wrld->lock);
231    
232      double totalTime = GetTime() - t0;      double totalTime = airTime() - t0;
233    
234      if (VerboseFlg)      if (VerboseFlg)
235          fprintf (stderr, "done: %d steps, in %f seconds\n", wrld->nSteps, totalTime);          fprintf (stderr, "done: %d steps, in %f seconds\n", wrld->nSteps, totalTime);

Legend:
Removed from v.1602  
changed lines
  Added in v.1603

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0