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

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/c-target/fragments/par-main.in
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/fragments/par-main.in

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

revision 2561, Thu Mar 6 17:45:45 2014 UTC revision 2562, Mon Mar 10 04:10:03 2014 UTC
# Line 2  Line 2 
2  int main (int argc, const char **argv)  int main (int argc, const char **argv)
3  {  {
4      bool        timingFlg = false;      //! true if timing computation      bool        timingFlg = false;      //! true if timing computation
5        bool        spatialTimeFlg = false; //! true if timing computation for spatial tree building
6      bool        printOutputFlg = false; //! true if output is in text format      bool        printOutputFlg = false; //! true if output is in text format
7    
8    // create the world    // create the world
# Line 24  Line 25 
25          Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);          Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);
26          Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);          Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);
27          Diderot_OptAddUInt (opts, "np", "specify number of worker threads", &np, true);          Diderot_OptAddUInt (opts, "np", "specify number of worker threads", &np, true);
28        Diderot_OptAddFlag (opts, "spatialTiming", "enable spatial tree building timing",&spatialTimeFlg);
29          Diderot_OptAddUInt (opts, "seqt", "specify the strands' threshold before executing the sequential KDtree construction.", &seqThreshold, true);          Diderot_OptAddUInt (opts, "seqt", "specify the strands' threshold before executing the sequential KDtree construction.", &seqThreshold, true);
30      Diderot_OptAddUInt (opts, "wgsize", "specify the workgroup size for a worker when performing a global reduction", &workgroupSize, true);      Diderot_OptAddUInt (opts, "wgsize", "specify the workgroup size for a worker when performing a global reduction", &workgroupSize, true);
31          RegisterGlobalOpts (&inputs, opts);          RegisterGlobalOpts (&inputs, opts);
# Line 65  Line 67 
67          fprintf (stderr, "done: %d steps, in %f seconds\n", nSteps, totalTime);          fprintf (stderr, "done: %d steps, in %f seconds\n", nSteps, totalTime);
68      else if (timingFlg)      else if (timingFlg)
69          printf ("usr=%f\n", totalTime);          printf ("usr=%f\n", totalTime);
70        else if (spatialTimeFlg)
71            printf ("spatial=%f\n", wrld->spatialTime);
72    
73    // output the final strand states    // output the final strand states
74      if (printOutputFlg)      if (printOutputFlg)

Legend:
Removed from v.2561  
changed lines
  Added in v.2562

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