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

SCM Repository

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

Diff of /branches/cuda/src/compiler/target-cuda/fragments/main.in

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

revision 5633, Tue Sep 14 16:17:13 2021 UTC revision 5634, Wed Sep 15 21:02:20 2021 UTC
# Line 24  Line 24 
24      init_defaults (&inputs);      init_defaults (&inputs);
25  #endif  #endif
26    
27        auto* gpuSelector = new diderot::gpu_selector();
28    // handle command-line options    // handle command-line options
29      {      {
30          diderot::options *opts = new diderot::options ();          diderot::options *opts = new diderot::options ();
# Line 38  Line 39 
39          opts->addFlag ("v,verbose", "enable runtime-system messages", &(wrld->_verbose));          opts->addFlag ("v,verbose", "enable runtime-system messages", &(wrld->_verbose));
40          opts->addFlag ("t,timing", "enable execution timing", &timingFlg);          opts->addFlag ("t,timing", "enable execution timing", &timingFlg);
41          opts->add ("n,nblock","specify number of blocks", &NumberOfBlocks, true);          opts->add ("n,nblock","specify number of blocks", &NumberOfBlocks, true);
42          opts->add ("b,blocksize","specify number of blocks", &InnerBlockSize, true);          opts->add ("b,blocksize","specify size of blocks", &InnerBlockSize, true);
43            gpuSelector->registerOptions (opts);
44  #ifndef DIDEROT_NO_INPUTS  #ifndef DIDEROT_NO_INPUTS
45        // register options for setting global inputs        // register options for setting global inputs
46          register_inputs (&inputs, opts);          register_inputs (&inputs, opts);
# Line 47  Line 49 
49          opts->process (argc, argv);          opts->process (argc, argv);
50          delete opts;          delete opts;
51      }      }
52        gpuSelector->selectGpu();
53    
54    // redirect printing (if necessary)    // redirect printing (if necessary)
55      if (printFile.compare("-") != 0) {      if (printFile.compare("-") != 0) {

Legend:
Removed from v.5633  
changed lines
  Added in v.5634

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