mperf icon indicating copy to clipboard operation
mperf copied to clipboard

error with ioctl on qcom adreno 730

Open a243845305 opened this issue 2 years ago • 4 comments

./gpu_adreno_pmu_test 1000 10 1 opencl lib found but can not be opened: /system/lib64/libOpenCL.so err=(null) opencl lib found but can not be opened: /system/lib64/libOpenCL_system.so err=(null) opencl lib found but can not be opened: /system/lib64/egl/libGLES_mali.so err=(null) opencl lib found but can not be opened: /system/vendor/lib64/egl/libGLES_mali.so err=(null) opencl lib found but can not be opened: /system/vendor/lib64/libPVROCL.so err=(null) opencl lib found but can not be opened: /usr/lib64/libGLESv2.so.2.1.0 err=(null) opencl lib found but can not be opened: /data/data/org.pocl.libs/files/lib64/libpocl.so err=(null) use opencl: libOpenCL.so ioctl: read in the current value of an event set failed: Operation not permitted terminating with uncaught exception of type std::runtime_error: Failed to read the value of an event set. Aborted


device info: Qualcomm, Adreno (TM) 730 build cmd: ./android_build.sh -g adreno

a243845305 avatar Jul 03 '23 07:07 a243845305

看上去是权限问题,可能需要root权限

youzhedian avatar Jul 03 '23 08:07 youzhedian

我应该已经获取了root 权限 adb root -> adbd is already running as root adb remount -> remount succeeded chmod 777 gpu_adreno_pmu_test ./gpu_adreno_pmu_test 100 10 10 WARNING: linker: Warning: "/odm/lib64" is not a directory (ignoring) opencl lib found but can not be opened: /system/lib64/libOpenCL.so err=(null) opencl lib found but can not be opened: /system/lib64/libOpenCL_system.so err=(null) opencl lib found but can not be opened: /system/lib64/egl/libGLES_mali.so err=(null) opencl lib found but can not be opened: /system/vendor/lib64/egl/libGLES_mali.so err=(null) opencl lib found but can not be opened: /system/vendor/lib64/libPVROCL.so err=(null) opencl lib found but can not be opened: /usr/lib64/libGLESv2.so.2.1.0 err=(null) opencl lib found but can not be opened: /data/data/org.pocl.libs/files/lib64/libpocl.so err=(null) use opencl: libOpenCL.so ioctl: read in the current value of an event set failed: Operation not permitted terminating with uncaught exception of type std::runtime_error: Failed to read the value of an event set. Aborted

仍然是这样的信息。 是上述获取root权限的方式有误?还是其他什么问题呢?

a243845305 avatar Jul 03 '23 08:07 a243845305

啊, 是我看错了,你这是要在adreno730上采样呀,当前只支持adreno6xx系列的adreno,adreno7xx的pmu event list在开源世界里找不到,没法加支持

youzhedian avatar Jul 03 '23 08:07 youzhedian

哦哦,好,期待后续更新。 另外问下 mali 有类似最高支持的版本吗?

a243845305 avatar Jul 03 '23 10:07 a243845305