AnsweredAssumed Answered

How to profile OpenCL on i.MX 8M?

Question asked by Aleksandrs Polocks on Apr 7, 2019
Latest reply on Apr 10, 2019 by Bio_TICFSL

Hello,

 

vProfiler:

  • produces *.vpd for OpenGL ES code (e.g. /opt/viv_samples/vdk/cover_flow), but
  • does not produce *.vpd for OpenCL code (e.g. /opt/viv_samples/cl11/fft/fft 1024).

 

How to profile OpenCL with vProfiler (so that the *.vpd file is produced) on i.MX 8M?

If that is not currently possible, what are other options to profile OpenCL on i.MX 8M?

 

What I do is:

  1. Use device MCIMX8M-EVK.
  2. Use software imx-yocto-L4.14.78_1.0.0_ga (Linux).
  3. Append arguments galcore.powerManagement=0 galcore.showArgs=1 galcore.gpuProfiler=1  to env bootargs in U-boot [1].
  4. In Linux, set environmental variable VIV_PROFILE to 1 (via export VIV_PROFILE=1) [2].
  5. Run /opt/viv_samples/cl11/fft/fft 1024 (or any other OpenCL program).

 

[1]: Document "i.MX Graphics User’s Guide" Rev. 1, 11/2018, Section "12.6.2.2 Enable vProfiler option in U-Boot"

[2]: Document "i.MX Graphics User’s Guide" Rev. 1, 11/2018, Section "12.6.2.3 Set vProfiler environment variables"


Best regards,
Alex

Outcomes