opencl_info program
Type the following commands at the linux shell prompt

[carlos@localhost samples]$ ls
info_opencl.tar.gz
[carlosn@localhost samples]$ tar -xf info_opencl.tar.gz
[carlosn@localhost samples]$ ls
01_info_opencl  info_opencl.tar.gz
[carlosn@localhost samples]$ cd 01_info_opencl
[carlosn@ps2 01_info_opencl]$ ls
Makefile        opencl_info.c        output.txt        readme.txt
[carlosn@ps2 01_info_opencl]$ make
[carlosn@ps2 01_info_opencl]$ ./opencl_info
==============================================================
          OpenCL Platform Info
==============================================================
Number of platforms: 1

Platform # 1
   Platform profile: FULL_PROFILE
   Platform version: OpenCL 1.0 200910211809
   Platform name: IBM
   Platform vendor: IBM
   Platform extensions:

==============================================================
          OpenCL Device Info
==============================================================
Number of devices: 2

Device # 1
   Device type: CL_DEVICE_TYPE_ACCELERATOR
   Device vendor ID: 33554432
   Max compute units: 6
   Max work item dimensions: 3
     Max work item sizes: 256, 256, 256
   Max work group size: 256
   Preferred vector width char: 16
   Preferred vector width short: 8
   Preferred vector width int: 4
   Preferred vector width long: 2
   Preferred vector width float: 4
   Preferred vector width double: 0
   Max clock frequency: 3200 MHz
   Address bits: 32
   Max memory alloc size: 134217728 = (128*1024*1024)
   CL_DEVICE_IMAGE_SUPPORT: No
   Max samplers: 0
   Max parameter size: 256
   Memory base address align: 1024 bits
   Min data type align size: 1 byte(s)
   Single floating point config
     CL_FP_DENORM: No
     CL_FP_INF_NAN: No
     CL_FP_ROUND_TO_NEAREST: No
     CL_FP_ROUND_TO_ZERO: Yes
     CL_FP_ROUND_TO_INF: No
     CL_FP_FMA: Yes
   Global memory cache type: CL_NONE
   Global mem cache line size: 0 bytes
   Global memory cache size: 0 bytes
   Global memory size: 7200768 bytes
   Max constant buffer size: 65536 bytes
   Max constant args: 8 bytes
   Local memory type: CL_LOCAL
   Local memory size: 248832 bytes
   Error correction support: Yes
   Profiling timer resolution: 12
   Endianness: Big endian
   Device available: Yes
   Compiler available: Yes
   Execution capabilities
     CL_EXEC_KERNEL: Yes
     CL_EXEC_NATIVE_KERNEL: No
   Queue properties
     CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE: Yes
     CL_QUEUE_PROFILING_ENABLE: Yes
   Device name: ACCELERATOR CellBE processor
   Device vendor: IBM
   Device profile: EMBEDDED_PROFILE
   Device version: OpenCL 1.0 200910211809
   Driver version: 0.1
   Device extensions: Not Supported

Device # 2
   Device type: CL_DEVICE_TYPE_CPU
   Device vendor ID: 16777216
   Max compute units: 2
   Max work item dimensions: 3
     Max work item sizes: 256, 256, 256
   Max work group size: 256
   Preferred vector width char: 16
   Preferred vector width short: 8
   Preferred vector width int: 4
   Preferred vector width long: 2
   Preferred vector width float: 4
   Preferred vector width double: 0
   Max clock frequency: 3200 MHz
   Address bits: 32
   Max memory alloc size: 134217728 = (128*1024*1024)
   CL_DEVICE_IMAGE_SUPPORT: No
   Max samplers: 0
   Max parameter size: 256
   Memory base address align: 1024 bits
   Min data type align size: 1 byte(s)
   Single floating point config
     CL_FP_DENORM: Yes
     CL_FP_INF_NAN: Yes
     CL_FP_ROUND_TO_NEAREST: Yes
     CL_FP_ROUND_TO_ZERO: No
     CL_FP_ROUND_TO_INF: No
     CL_FP_FMA: Yes
   Global memory cache type: CL_READ_WRITE_CACHE
   Global mem cache line size: 128 bytes
   Global memory cache size: 32768 bytes
   Global memory size: 7200768 bytes
   Max constant buffer size: 65536 bytes
   Max constant args: 8 bytes
   Local memory type: CL_GLOBAL
   Local memory size: 524288 bytes
   Error correction support: Yes
   Profiling timer resolution: 12
   Endianness: Big endian
   Device available: Yes
   Compiler available: Yes
   Execution capabilities
     CL_EXEC_KERNEL: Yes
     CL_EXEC_NATIVE_KERNEL: Yes
   Queue properties
     CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE: Yes
     CL_QUEUE_PROFILING_ENABLE: Yes
   Device name: CPU Cell Broadband Engine, altivec supported
   Device vendor: IBM
   Device profile: FULL_PROFILE
   Device version: OpenCL 1.0 200910211809
   Driver version: 0.1
   Device extensions: Not Supported