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

SCM Repository

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

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

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

revision 1844, Sat Apr 14 12:11:31 2012 UTC revision 2077, Mon Nov 5 11:51:35 2012 UTC
# Line 12  Line 12 
12      }      }
13    
14    // handle command-line options    // handle command-line options
15        {
16      Diderot_Options_t *opts = Diderot_OptNew ();      Diderot_Options_t *opts = Diderot_OptNew ();
17      Diderot_uint_t np = wrld->sched->numWorkers;      Diderot_uint_t np = wrld->sched->numWorkers;
18            @PREFIX@Inputs_t inputs;
19            InitDefaults (&inputs);
20      Diderot_OptAddFlag (opts, "verbose", "enable runtime-system messages", &(wrld->verboseFlg));      Diderot_OptAddFlag (opts, "verbose", "enable runtime-system messages", &(wrld->verboseFlg));
21      Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);      Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg);
22      Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);      Diderot_OptAddFlag (opts, "text", "enable text output", &printOutputFlg);
23      Diderot_OptAddUInt (opts, "np", "specify number of worker threads", &np, true);      Diderot_OptAddUInt (opts, "np", "specify number of worker threads", &np, true);
24      RegisterGlobalOpts (wrld, opts);          RegisterGlobalOpts (&inputs, opts);
25      Diderot_OptProcess (opts, argc, argv);      Diderot_OptProcess (opts, argc, argv);
26      Diderot_OptFree (opts);      Diderot_OptFree (opts);
27      wrld->sched->numWorkers = np;      wrld->sched->numWorkers = np;
28            InitInputs (wrld, &inputs);
29        }
30    
31    // run the generated global initialization code    // run the generated global initialization code
32      if (wrld->verboseFlg)      if (wrld->verboseFlg)

Legend:
Removed from v.1844  
changed lines
  Added in v.2077

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