GPU utilization measurement

Continuing the discussion from Install gputop on imx8mp verdin:

I have followed this post for GPU performance measuring, after running the application sample.vpd file created, but the fact is instead of one file three files are created with names sample_842_1.vpd, sample_842_2.vpd, sample_842_3.vpd. here only sample_842_2.vpd has data in it, remaining two has 0 bytes of data in them.
For analysis, i am using vivanteIDE tool, in that i am confused to find overall GPU utilization ( in Analysis Details GPU utilization is there, but that is not for overall it is different for different frames), Help me to find GPU utilization.

I am using Apalis IMX8QM/QP som and built the image in dunfell version.

Thank you.

Hi @Muthyam ,
There is an ongoing email support as well where you mentioned that you are using “Apalis iMX6”.
I tried the below on Apalis iMX6

Summarizing the steps here.

  1. Compile image with IMAGE_INSTALL_append= " imx-test" in your local.conf (BSP 5.7)
  2. Set envoronment variable
setenv tdxargs galcore.gpuProfiler=1
saveenv

You may confirm it at cat /sys/module/galcore/parameters/gpuProfiler

3.Enable VIV_PROFILER
export VIV_PROFILE=1

4.VP_OUTPUT
By default it is vprofiler.vpd. In case you want to change the name
eg
export VP_OUTPUT=sample.vpd

  1. Run the test application based on OpenGL
    glmark2-es2-wayland
root@apalis-imx6-04920838:~# glmark2-es2-wayland
EGL: Warning: No default display support on wayland
=======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     Vivante Corporation
    GL_RENDERER:   Vivante GC2000
    GL_VERSION:    OpenGL ES 3.0 V6.4.3.p1.305572
=======================================================
[build] use-vbo=false: FPS: 169 FrameTime: 5.917 ms
[build] use-vbo=true: FPS: 225 FrameTime: 4.444 ms
[texture] texture-filter=nearest: FPS: 177 FrameTime: 5.650 ms
[texture] texture-filter=linear: FPS: 172 FrameTime: 5.814 ms
[texture] texture-filter=mipmap: FPS: 169 FrameTime: 5.917 ms
[shading] shading=gouraud: FPS: 183 FrameTime: 5.464 ms
[shading] shading=blinn-phong-inf: FPS: 183 FrameTime: 5.464 ms
[shading] shading=phong: FPS: 160 FrameTime: 6.250 ms
[shading] shading=cel: FPS: 148 FrameTime: 6.757 ms
[bump] bump-render=high-poly: FPS: 157 FrameTime: 6.369 ms
[bump] bump-render=normals: FPS: 208 FrameTime: 4.808 ms
[bump] bump-render=height: FPS: 195 FrameTime: 5.128 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 101 FrameTime: 9.901 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 42 FrameTime: 23.810 ms
[pulsar] light=false:quads=5:texture=false: FPS: 151 FrameTime: 6.623 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 33 FrameTime: 30.303 ms
[desktop] effect=shadow:windows=4: FPS: 63 FrameTime: 15.873 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 36 FrameTime: 27.778 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 36 FrameTime: 27.778 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 40 FrameTime: 25.000 ms
[ideas] speed=duration: FPS: 63 FrameTime: 15.873 ms
[jellyfish] <default>: FPS: 84 FrameTime: 11.905 ms
[terrain] <default>: FPS: 0 FrameTime: inf ms
[shadow] <default>: FPS: 77 FrameTime: 12.987 ms
[refract] <default>: FPS: 18 FrameTime: 55.556 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 187 FrameTime: 5.348 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 122 FrameTime: 8.197 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 182 FrameTime: 5.495 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 170 FrameTime: 5.882 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 129 FrameTime: 7.752 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 165 FrameTime: 6.061 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 165 FrameTime: 6.061 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 113 FrameTime: 8.850 ms
=======================================================
                                  glmark2 Score: 124 
=======================================================

The score here should be the average of all the FPS from the benchamrk that runs. Is this you are looking for?

  1. Below are the output files generated for different FPS that you can analyze.
root@apalis-imx6-04920838:~# ls
pictures           sample_780_15.vpd  sample_780_21.vpd  sample_780_28.vpd  sample_780_34.vpd  sound
sample_780_1.vpd   sample_780_16.vpd  sample_780_22.vpd  sample_780_29.vpd  sample_780_4.vpd   video
sample_780_10.vpd  sample_780_17.vpd  sample_780_23.vpd  sample_780_3.vpd   sample_780_5.vpd
sample_780_11.vpd  sample_780_18.vpd  sample_780_24.vpd  sample_780_30.vpd  sample_780_6.vpd
sample_780_12.vpd  sample_780_19.vpd  sample_780_25.vpd  sample_780_31.vpd  sample_780_7.vpd
sample_780_13.vpd  sample_780_2.vpd   sample_780_26.vpd  sample_780_32.vpd  sample_780_8.vpd
sample_780_14.vpd  sample_780_20.vpd  sample_780_27.vpd  sample_780_33.vpd  sample_780_9.vpd

Note : VIVANTEIDE is not developed and maintained by Toradex.

hello @sahil.tx ,
Can i follow the same procedure for Apalis iMX also, because currently we are working on iMX8.

Hi @Muthyam ,
Yes, please try.