powervr-graphics / Native_SDK

C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
https://docs.imgtec.com/sdk-documentation/html/introduction.html
MIT License
702 stars 197 forks source link

About OpenCL Test #71

Open Rewyear opened 3 years ago

Rewyear commented 3 years ago

Hi I tried to test opencl on my target board which use pvr graphic(embedded environment)

To compare Performance, i did normal test and test with '-va' option.

I think if it uses OpenCL kernel, Performance increases dramatically

but... There is little difference in performance.

some test result is better than test without '-va' option

is it valid results and example?

LawG4 commented 2 years ago

Hello,

Apologies for the late reply. The OpenCLMatrixMultiplication example calculates the product of two matrices by using multiple different OpenCL kernels. Each kernel uses a slightly different method to multiply the matrices. This isn't necessarily for benchmarking OpenCL performance of a target device, rather to show the reader some tricks in OpenCL that will optimise your kernel for PowerVR devices.

If I remember correctly, -va stands for Validate, which performs the matrix multiplication on the CPU, and then compares that result to what was calculated on each of the OpenCL kernels.

Hope this helps, All the best, Lawrence