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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/MIP/mip_opencl.c
ViewVC logotype

Diff of /branches/pure-cfg/test/MIP/mip_opencl.c

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

revision 302, Tue Aug 17 03:52:21 2010 UTC revision 303, Tue Aug 17 03:54:15 2010 UTC
# Line 7  Line 7 
7   *   *
8   * To View the Image   * To View the Image
9   * =========================   * =========================
10   * ./unu reshape -i mip.txt -s 200 200 | ./unu quantize -b 8 -o new.png   * unu reshape -i mip.txt -s 200 200 | unu quantize -b 8 -o new.png
11   */   */
12  #include <OpenCL/OpenCl.h>  #include <OpenCL/OpenCl.h>
13  #include <assert.h>  #include <assert.h>
# Line 59  Line 59 
59                  max = matrix[i];                  max = matrix[i];
60    
61     }     }
    printf("Max: %f\n",max);  
62     fclose(out_file);     fclose(out_file);
63    
64    
# Line 328  Line 327 
327          err |=clSetKernelArg(kernel,index++,sizeof(cl_int2), &workDim);          err |=clSetKernelArg(kernel,index++,sizeof(cl_int2), &workDim);
328          err |=clSetKernelArg(kernel,index++,sizeof(cl_mem), &sAxis_mem);          err |=clSetKernelArg(kernel,index++,sizeof(cl_mem), &sAxis_mem);
329    
         printf("error:%d\n",err);  
330          assert(err == CL_SUCCESS);          assert(err == CL_SUCCESS);
331    
332    

Legend:
Removed from v.302  
changed lines
  Added in v.303

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