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

SCM Repository

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

Diff of /branches/vis15/src/compiler/target-cpu/fragments/par-main.in

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

revision 4063, Mon Jun 27 22:01:18 2016 UTC revision 4259, Mon Jul 25 18:24:43 2016 UTC
# Line 23  Line 23 
23    // handle command-line options    // handle command-line options
24      {      {
25          diderot::options<@REALTY@,@INTTY@> *opts = new diderot::options<@REALTY@,@INTTY@> ();          diderot::options<@REALTY@,@INTTY@> *opts = new diderot::options<@REALTY@,@INTTY@> ();
26          uint32_t np = wrld->_sched->numWorkers;          uint32_t np = wrld->_sched->_numWorkers;
27          opts->addFlag ("v,verbose", "enable runtime-system messages", &(wrld->_verbose));          opts->addFlag ("v,verbose", "enable runtime-system messages", &(wrld->_verbose));
28          opts->addFlag ("t,timing", "enable execution timing", &timingFlg);          opts->addFlag ("t,timing", "enable execution timing", &timingFlg);
29          opts->add ("n,nworkers", "specify number of worker threads", &np, true);          opts->add ("n,nworkers", "specify number of worker threads", &np, true);
# Line 36  Line 36 
36          register_outputs (opts);          register_outputs (opts);
37          opts->process (argc, argv);          opts->process (argc, argv);
38          delete opts;          delete opts;
39          wrld->_sched->numWorkers = np;          wrld->_sched->_numWorkers = np;
40      }      }
41    
42    // initialize scheduler stuff    // initialize scheduler stuff
# Line 82  Line 82 
82      }      }
83    
84    // output the final strand states    // output the final strand states
85      write_outputs (wrld);      write_output (wrld);
86    
87      delete wrld;      delete wrld;
88    

Legend:
Removed from v.4063  
changed lines
  Added in v.4259

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