How to profile OpenCL on i.MX 8M?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to profile OpenCL on i.MX 8M?

730 Views
aleksandrs_polo
Contributor I

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

Labels (2)
Tags (3)
0 Kudos
1 Reply

519 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Aleksandrs,

Currently is not prosible to enable vProfiler with OpenCL.

Regards

0 Kudos