Where can I find GPU tools (gpuinfo and gputop)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Where can I find GPU tools (gpuinfo and gputop)

3,277 次查看
sandeepgandiga
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? 

标记 (2)
0 项奖励
回复
1 回复

3,118 次查看
Rita_Wang
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 项奖励
回复