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 1327, Sun Jun 12 20:56:49 2011 UTC revision 1328, Sun Jun 12 21:14:54 2011 UTC
# Line 207  Line 207 
207    
208      return source;      return source;
209  }  }
210    void clLogMessagesToStdoutAPPLE(   const char * errstr ,
211                                              const void * private_info,
212                                              size_t  cb ,
213                                              void * user_data  )
214    {
215            fprintf(stderr,"%s\n",errstr);
216    
217    }
218  /*! \brief build an OpenCL program from source.  /*! \brief build an OpenCL program from source.
219   */   */
220  static bool InitCL (CLInfo_t *clInfo, Diderot_World_t *wrld)  static bool InitCL (CLInfo_t *clInfo, Diderot_World_t *wrld)
# Line 229  Line 236 
236      }      }
237    
238    // create the context    // create the context
239      cl_context cxt = clCreateContext(0, 1, &dev, 0, 0, &sts);      cl_context cxt = clCreateContext(0, 1, &dev, clLogMessagesToStdoutAPPLE, 0, &sts);
240      if (sts != CL_SUCCESS) {      if (sts != CL_SUCCESS) {
241          fprintf (stderr, "error creating OpenCL context\n");          fprintf (stderr, "error creating OpenCL context\n");
242          return false;          return false;

Legend:
Removed from v.1327  
changed lines
  Added in v.1328

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