Lemuntu

OpenCL_test source code?

1 1044
lashout  
Edited by Tido at Jan 08, 2016 12:03

Hello,
I'm trying to get an OpenCL application running on LeMaker Guitar.  I've followed your instructions on the wiki for installing the GPU and OpenCL driver, and have successfully run your ocl_unit_test and ocl_filter_test programs.

Is the source code for these programs available?  I am getting much worse performance in my OpenCL programs than your test programs, so would like to understand why.

Querying the OpenCL device gives me the following output.  The Maximum Workgroup Size of 1 seems wrong and related to my poor performance, so I think I'm seeting up the device wrong or something.

Any help would be appreciated.  Thanks!

NAME: PowerVR SGX 544
VENDOR: Imagination Technologies
PROFILE: EMBEDDED_PROFILE
VERSION: OpenCL 1.1
EXTENSIONS: cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
DRIVER_VERSION: 1.1

Type: GPU
EXECUTION_CAPABILITIES: Kernel
GLOBAL_MEM_CACHE_TYPE: Read-Write (2)
CL_DEVICE_LOCAL_MEM_TYPE: Global (2)
SINGLE_FP_CONFIG: 0xa
QUEUE_PROPERTIES: 0x2


  1. VENDOR_ID: 1
  2. MAX_COMPUTE_UNITS: 1
  3. MAX_WORK_ITEM_DIMENSIONS: 3
  4. MAX_WORK_GROUP_SIZE: 1
  5. PREFERRED_VECTOR_WIDTH_CHAR: 1
  6. PREFERRED_VECTOR_WIDTH_SHORT: 1
  7. PREFERRED_VECTOR_WIDTH_INT: 1
  8. PREFERRED_VECTOR_WIDTH_LONG: 0
  9. PREFERRED_VECTOR_WIDTH_FLOAT: 4
  10. PREFERRED_VECTOR_WIDTH_DOUBLE: 0
  11. MAX_CLOCK_FREQUENCY: 400
  12. ADDRESS_BITS: 32
  13. MAX_MEM_ALLOC_SIZE: 67108864
  14. IMAGE_SUPPORT: 1
  15. MAX_READ_IMAGE_ARGS: 8
  16. MAX_WRITE_IMAGE_ARGS: 1
  17. IMAGE2D_MAX_WIDTH: 4096
  18. IMAGE2D_MAX_HEIGHT: 4096
  19. IMAGE3D_MAX_WIDTH: 0
  20. IMAGE3D_MAX_HEIGHT: 0
  21. IMAGE3D_MAX_DEPTH: 0
  22. MAX_SAMPLERS: 8
  23. MAX_PARAMETER_SIZE: 256
  24. MEM_BASE_ADDR_ALIGN: 512
  25. MIN_DATA_TYPE_ALIGN_SIZE: 64
  26. GLOBAL_MEM_CACHELINE_SIZE: 64
  27. GLOBAL_MEM_CACHE_SIZE: 0
  28. GLOBAL_MEM_SIZE: 268435456
  29. MAX_CONSTANT_BUFFER_SIZE: 1048576
  30. MAX_CONSTANT_ARGS: 4
  31. LOCAL_MEM_SIZE: 1024
  32. ERROR_CORRECTION_SUPPORT: 0
  33. PROFILING_TIMER_RESOLUTION: 1000
  34. ENDIAN_LITTLE: 1
  35. AVAILABLE: 1
  36. COMPILER_AVAILABLE: 1
  37. MAX_WORK_GROUP_SIZES: 1 1 1
Copy the Code

I am very sorry, we have consulted IMG company,  and can not be open source to customers,

But you can go to the IMG official website to download the relevant sample code SDK, and  need to take some process: Registered account in https://pvrsupport.imgtec.com/, And then IMG will put their company's account on the NDA list, Then, you should be able to download the package SDK, and the download is free.

You have to log in before you can reply Login | Sign Up

Points Rules