OpenCL device query script

Moderator: dar

OpenCL device query script

Postby imrehg » Fri Jun 12, 2015 1:06 pm

I'm making my first steps with OpenCL, and did not feel like there's a lot of info about the Parallella hardware in terms of OpenCL capabilities, e.g. some things that I found are needed setting up things correctly in code. Probably there's all that info somewhere, but I'm not sure. Came across a device capability query script on Github. It was written for Intel CPU OpenCL testing but it seems to work on all other platforms as well.

I've compiled it with
Code: Select all
g++ -o clDeviceQuery clDeviceQuery.cpp -I/usr/local/browndeer/include -L/usr/local/browndeer/lib -lcoprthr_opencl

and runs mostly fine. (Just FYI, In its original form the program hangs at the end in a not important area, see my comments on Github patching that)

I share the output here, maybe it will be interesting to someone!

Code: Select all
clDeviceQuery Starting...

1 OpenCL Platforms found

 CL_PLATFORM_NAME:      coprthr
 CL_PLATFORM_VERSION:   coprthr-1.6-CURRENT (Freewill)
OpenCL Device Info:

 2 devices found supporting OpenCL on: coprthr

 ----------------------------------
 Device ARMv7 Processor rev 0 (v7l)
 ---------------------------------
  CL_DEVICE_NAME:                       ARMv7 Processor rev 0 (v7l)
  CL_DEVICE_VENDOR:                     Xilinx
  CL_DRIVER_VERSION:                    unknown
  CL_DEVICE_TYPE:                       CL_DEVICE_TYPE_CPU
  CL_DEVICE_MAX_COMPUTE_UNITS:          1
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:        1 / 1 / 1
  CL_DEVICE_MAX_WORK_GROUP_SIZE:        64
  CL_DEVICE_MAX_CLOCK_FREQUENCY:        0 MHz
  CL_DEVICE_ADDRESS_BITS:               64
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:         1024 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:            866 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:             global
  CL_DEVICE_LOCAL_MEM_SIZE:             0 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   64 KByte
  CL_DEVICE_QUEUE_PROPERTIES:           CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:              0
  CL_DEVICE_MAX_READ_IMAGE_ARGS:        0
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:       0

  CL_DEVICE_IMAGE <dim>                 2D_MAX_WIDTH     0
                                        2D_MAX_HEIGHT    0
                                        3D_MAX_WIDTH     0
                                        3D_MAX_HEIGHT    0
                                        3D_MAX_DEPTH     0
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 8, SHORT 4, INT 2, FLOAT 1, DOUBLE 2


 ----------------------------------
 Device E16G Needham
 ---------------------------------
  CL_DEVICE_NAME:                       E16G Needham
  CL_DEVICE_VENDOR:                     Adapteva, Inc.
  CL_DRIVER_VERSION:                    unknown
  CL_DEVICE_TYPE:                       CL_DEVICE_TYPE_ACCELERATOR
  CL_DEVICE_MAX_COMPUTE_UNITS:          16
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:        1 / 1 / 1
  CL_DEVICE_MAX_WORK_GROUP_SIZE:        16
  CL_DEVICE_MAX_CLOCK_FREQUENCY:        0 MHz
  CL_DEVICE_ADDRESS_BITS:               32
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:         1024 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:            31 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:             global
  CL_DEVICE_LOCAL_MEM_SIZE:             32 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   0 KByte
  CL_DEVICE_QUEUE_PROPERTIES:           CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:              0
  CL_DEVICE_MAX_READ_IMAGE_ARGS:        0
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:       0

  CL_DEVICE_IMAGE <dim>                 2D_MAX_WIDTH     0
                                        2D_MAX_HEIGHT    0
                                        3D_MAX_WIDTH     0
                                        3D_MAX_HEIGHT    0
                                        3D_MAX_DEPTH     0
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 4, SHORT 2, INT 1, FLOAT 1, DOUBLE 1


clDeviceQuery, Platform Name = coprthr, Platform Version = coprthr-1.6-CURRENT (Freewill), NumDevs = 2, Device = ARMv7 Processor rev 0 (v7l), Device = E16G Needham

System Info:

 Local Time/Date =  20:44:35, 06/12/2015
 CPU Name: ARMv7 Processor rev 0 (v7l)
 # of CPU processors: 2
 Linux version 3.14.12-parallella-xilinx (greg@nostromo) (gcc version 4.8.4 (Buildroot 2015.08-git-00084-g2f13107) ) #1 SMP PREEMPT Sun Jun 7 13:31:24 CST 2015


TEST PASSED
User avatar
imrehg
 
Posts: 14
Joined: Mon Dec 17, 2012 3:25 am
Location: Taipei, Taiwan

Return to OpenCL

Who is online

Users browsing this forum: MSN [Bot] and 1 guest