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

SCM Repository

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

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

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

revision 3131, Wed Mar 25 14:38:28 2015 UTC revision 3132, Wed Mar 25 15:25:10 2015 UTC
# Line 35  Line 35 
35    // handle command-line options    // handle command-line options
36      {      {
37          Diderot_Options_t *opts = Diderot_OptNew ();          Diderot_Options_t *opts = Diderot_OptNew ();
38            Diderot_uint_t nw = wrld->nWorkers;
39          Diderot_OptAddFlag (opts, "v,verbose", "enable runtime-system messages", &(wrld->verboseFlg));          Diderot_OptAddFlag (opts, "v,verbose", "enable runtime-system messages", &(wrld->verboseFlg));
40          Diderot_OptAddFlag (opts, "t,timing", "enable execution timing", &timingFlg);          Diderot_OptAddFlag (opts, "t,timing", "enable execution timing", &timingFlg);
41  //      Diderot_OptAddFlag (opts, "T,text", "enable text output", &printOutputFlg);  //      Diderot_OptAddFlag (opts, "T,text", "enable text output", &printOutputFlg);
42          Diderot_OptAddString (opts, "d,device", "OpenCL device index", &devName, true);          Diderot_OptAddString (opts, "d,device", "OpenCL device index", &devName, true);
43            Diderot_OptAddUInt (opts, "n,nworkers", "specify number of workers per compute unit", &nw, true);
44  #ifndef DIDEROT_NO_INPUTS  #ifndef DIDEROT_NO_INPUTS
45        // register options for setting global inputs        // register options for setting global inputs
46          RegisterGlobalOpts (&inputs, opts);          RegisterGlobalOpts (&inputs, opts);
# Line 60  Line 62 
62              }              }
63              wrld->device = clDevice;              wrld->device = clDevice;
64          }          }
65            wrld->nWorkers = nw;
66      }      }
67    
68    // initialize scheduler stuff    // initialize scheduler stuff

Legend:
Removed from v.3131  
changed lines
  Added in v.3132

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