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/clinfo.c
ViewVC logotype

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

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

revision 1383, Thu Jun 23 20:24:04 2011 UTC revision 1384, Fri Jun 24 01:43:41 2011 UTC
# Line 117  Line 117 
117          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
118              devices[i], CL_DEVICE_MAX_COMPUTE_UNITS, sizeof(cl_uint), &(dev->numCUs), 0));              devices[i], CL_DEVICE_MAX_COMPUTE_UNITS, sizeof(cl_uint), &(dev->numCUs), 0));
119          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
120                devices[i], CL_DEVICE_MAX_CONSTANT_ARGS, sizeof(cl_uint), &(dev->maxConstArgs), 0));
121            CHECK(clGetDeviceInfo (
122              devices[i], CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, sizeof(cl_uint), &(dev->maxWIDims), 0));              devices[i], CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, sizeof(cl_uint), &(dev->maxWIDims), 0));
123          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
124              devices[i], CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(size_t), &(dev->maxWGSize), 0));              devices[i], CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(size_t), &(dev->maxWGSize), 0));
# Line 128  Line 130 
130          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
131              devices[i], CL_DEVICE_LOCAL_MEM_SIZE, sizeof(cl_ulong), &(dev->localMemSzb), 0));              devices[i], CL_DEVICE_LOCAL_MEM_SIZE, sizeof(cl_ulong), &(dev->localMemSzb), 0));
132          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
133                devices[i], CL_DEVICE_MAX_PARAMETER_SIZE, sizeof(size_t), &(dev->maxParamSzb), 0));
134            CHECK(clGetDeviceInfo (
135                devices[i], CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE, sizeof(cl_ulong), &(dev->maxConstBufSzb), 0));
136            CHECK(clGetDeviceInfo (
137              devices[i], CL_DEVICE_MAX_MEM_ALLOC_SIZE, sizeof(cl_ulong), &(dev->maxAllocSzb), 0));              devices[i], CL_DEVICE_MAX_MEM_ALLOC_SIZE, sizeof(cl_ulong), &(dev->maxAllocSzb), 0));
138          cl_bool imagesSupported;          cl_bool imagesSupported;
139          CHECK(clGetDeviceInfo (          CHECK(clGetDeviceInfo (
# Line 185  Line 191 
191              fprintf (outS, "\n");              fprintf (outS, "\n");
192              fprintf (outS, "      Global memory size:   %ld\n", (long)(dev->globalMemSzb));              fprintf (outS, "      Global memory size:   %ld\n", (long)(dev->globalMemSzb));
193              fprintf (outS, "      Local memory size:    %ld\n", (long)(dev->localMemSzb));              fprintf (outS, "      Local memory size:    %ld\n", (long)(dev->localMemSzb));
194                fprintf (outS, "      Max. parameter size:     %ld\n", (long)(dev->maxParamSzb));
195              fprintf (outS, "      Max. allocation size: %ld\n", (long)(dev->maxAllocSzb));              fprintf (outS, "      Max. allocation size: %ld\n", (long)(dev->maxAllocSzb));
196                fprintf (outS, "      Max. const. buffer size: %ld\n", (long)(dev->maxConstBufSzb));
197                fprintf (outS, "      Max. const. arguments:   %d\n", dev->maxConstArgs);
198              fprintf (outS, "      Max. 2D image size:   %ld x %ld\n",              fprintf (outS, "      Max. 2D image size:   %ld x %ld\n",
199                  (long)(dev->maxImg2D[0]), (long)(dev->maxImg2D[1]));                  (long)(dev->maxImg2D[0]), (long)(dev->maxImg2D[1]));
200              fprintf (outS, "      Max. 3D image size:   %ld x %ld x %ld\n",              fprintf (outS, "      Max. 3D image size:   %ld x %ld x %ld\n",

Legend:
Removed from v.1383  
changed lines
  Added in v.1384

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