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

SCM Repository

[diderot] Diff of /branches/vis12-cl/src/lib/cl-target/ocl-image.c
ViewVC logotype

Diff of /branches/vis12-cl/src/lib/cl-target/ocl-image.c

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

revision 3158, Sat Mar 28 07:17:20 2015 UTC revision 3159, Sat Mar 28 09:40:50 2015 UTC
# Line 76  Line 76 
76    /* invoke the initialization kernel. s*/    /* invoke the initialization kernel. s*/
77      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)
78      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)
79      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS))      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS)
80        ||  ((sts = clEnqueueTask (wrld->cmdQ, initKern, 0, NULL, NULL)) != CL_SUCCESS))
81      {      {
82          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");
83          Diderot_FreeImage1D((WorldPrefix_t *)wrld, img);          Diderot_FreeImage1D((WorldPrefix_t *)wrld, img);
# Line 146  Line 147 
147    /* invoke the initialization kernel. s*/    /* invoke the initialization kernel. s*/
148      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)
149      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)
150      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS))      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS)
151        ||  ((sts = clEnqueueTask (wrld->cmdQ, initKern, 0, NULL, NULL)) != CL_SUCCESS))
152      {      {
153          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");
154          Diderot_FreeImage2D((WorldPrefix_t *)wrld, img);          Diderot_FreeImage2D((WorldPrefix_t *)wrld, img);
# Line 216  Line 218 
218    /* invoke the initialization kernel. s*/    /* invoke the initialization kernel. s*/
219      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)      if (((sts = clSetKernelArg (initKern, 0, sizeof(cl_mem), &globals)) != CL_SUCCESS)
220      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)      ||  ((sts = clSetKernelArg (initKern, 1, sizeof(cl_mem), &imgObj)) != CL_SUCCESS)
221      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS))      ||  ((sts = clSetKernelArg (initKern, 2, sizeof(cl_mem), &dataObj)) != CL_SUCCESS)
222        ||  ((sts = clEnqueueTask (wrld->cmdQ, initKern, 0, NULL, NULL)) != CL_SUCCESS))
223      {      {
224          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");          ReportOCLError (wrld, sts, "error enqueuing image initialization kernel");
225          Diderot_FreeImage3D((WorldPrefix_t *)wrld, img);          Diderot_FreeImage3D((WorldPrefix_t *)wrld, img);

Legend:
Removed from v.3158  
changed lines
  Added in v.3159

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