Where can I find GPU tools (gpuinfo and gputop)

cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find GPU tools (gpuinfo and gputop)

337 Views
Contributor I

Where can I find GPU tools (gpuinfo and gputop) as mentioned in https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf  

And, do they work on i.MX8 running Android? 

Tags (2)
0 Kudos
1 Reply

178 Views
NXP TechSupport
NXP TechSupport

gpuinfo

/unit_tests/GPU/gpuinfo.sh
gputop

/usr/bin/gputop

For android BSP the gputop maybe not default support you need to build and deploy it

  • Build gputop
    git clone ssh://git@bitbucket.sw.nxp.com/gtec/gputop.git
    cd gputop
    git apply 0001-gputop-fix-compilation.patch
    export PATH=/path/to/android-ndk-rxxx:$PATH
    export NDK_PROJECT_PATH=.
    export TARGET_PLATFORM=arm64-v8a
    export GPUPERFCNT_INCLUDE_PATH=/path/to/libgpuperfcnt/include
    export GPUPERFCNT_LIB_PATH=/path/to/libgpuperfcnt/obj/local/arm64-v8a
    ndk-build NDK_APPLICATION_MK=./tools/Application.mk

    output: /path/to/gputop/libs/arm64-v8a/gpu-top

 

  • Deploy gputop
    adb root
    adb push /path/to/libs/arm64-v8a/gpu-top /data/local

 

  • Run gputop
    /data/local/gpu-top

Before running the command, you would need to enable vProfiler option as described in  "12.6.3.1 Enable vProfiler option in kernel" from "i.MX Graphics User's Guide" in order to get proper occupancy values.

0 Kudos