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-check-cl-status.in
ViewVC logotype

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

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

revision 3129, Wed Mar 25 09:52:05 2015 UTC revision 3130, Wed Mar 25 10:40:27 2015 UTC
# Line 1  Line 1 
1  // Report an OpenCL error  // Report an OpenCL error
2  STATIC_INLINE void ReportOCLError (@PREFIX@World_t *wrld, cl_int sts, const char *msg)  STATIC_INLINE void ReportOCLError (@PREFIX@World_t *wrld, cl_int sts, const char *msg)
3  {  {
4      biffMsgAddf (wrld->errors, "%s: %s", msg, Diderot_OCLErrorString(sts));      biffMsgAddf (wrld->errors, "%s: %s (%d)", msg, Diderot_OCLErrorString(sts), sts);
5  }  }
6    
7  // Check the return status of a CL API call.  If there is an error, add a message to  // Check the return status of a CL API call.  If there is an error, add a message to

Legend:
Removed from v.3129  
changed lines
  Added in v.3130

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