error with ioctl on qcom adreno 730
./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
看上去是权限问题,可能需要root权限
我应该已经获取了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权限的方式有误?还是其他什么问题呢?
啊, 是我看错了,你这是要在adreno730上采样呀,当前只支持adreno6xx系列的adreno,adreno7xx的pmu event list在开源世界里找不到,没法加支持
哦哦,好,期待后续更新。 另外问下 mali 有类似最高支持的版本吗?