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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/cl-target/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/cl-target/main.c

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

revision 1663, Tue Nov 29 09:48:33 2011 UTC revision 1664, Tue Nov 29 10:43:54 2011 UTC
# Line 80  Line 80 
80          exit (1);          exit (1);
81      }      }
82    
83        // run the generated global initialization code
84        if (VerboseFlg)
85            fprintf (stderr, "initializing globals ...\n");
86        Diderot_InitGlobals ();
87    
88      Diderot_int_t nWorkersPerCU = 4;      Diderot_int_t nWorkersPerCU = 4;
89      Diderot_Options_t *opts = Diderot_OptNew ();      Diderot_Options_t *opts = Diderot_OptNew ();
90      Diderot_OptAddInt (opts, "np", "specify number of workers/CU", &nWorkersPerCU, true);      Diderot_OptAddInt (opts, "np", "specify number of workers/CU", &nWorkersPerCU, true);
# Line 90  Line 95 
95      if (VerboseFlg)      if (VerboseFlg)
96          PrintCLInfo (stdout, clInfo);          PrintCLInfo (stdout, clInfo);
97    
   // run the generated global initialization code  
     if (VerboseFlg)  
         fprintf (stderr, "initializing globals ...\n");  
     Diderot_InitGlobals ();  
   
98      Diderot_World_t *wrld = Diderot_Initially ();  // this may not be right for OpenCL      Diderot_World_t *wrld = Diderot_Initially ();  // this may not be right for OpenCL
99    
100      if (! InitCL(clInfo, wrld))      if (! InitCL(clInfo, wrld))

Legend:
Removed from v.1663  
changed lines
  Added in v.1664

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