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/seq-main.in
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/fragments/seq-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 16  Line 17 
17          InitDefaults (&inputs);          InitDefaults (&inputs);
18          Diderot_OptAddFlag (opts, "verbose", "enable runtime-system messages", &(wrld->verboseFlg));          Diderot_OptAddFlag (opts, "verbose", "enable runtime-system messages", &(wrld->verboseFlg));
19          Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);          Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);
20        Diderot_OptAddFlag (opts, "spatialTiming", "enable spatial tree building timing",&spatialTimeFlg);
21          Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);          Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);
22          RegisterGlobalOpts (&inputs, opts);          RegisterGlobalOpts (&inputs, opts);
23          Diderot_OptProcess (opts, argc, argv);          Diderot_OptProcess (opts, argc, argv);
# Line 41  Line 43 
43          fprintf (stderr, "done: %d steps, in %f seconds\n", nSteps, totalTime);          fprintf (stderr, "done: %d steps, in %f seconds\n", nSteps, totalTime);
44      else if (timingFlg)      else if (timingFlg)
45          printf ("usr=%f\n", totalTime);          printf ("usr=%f\n", totalTime);
46        else if (spatialTimeFlg)
47            printf ("spatial=%f\n", wrld->spatialTime);
48    
49    // output the final strand states    // output the final strand states
50      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