Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with ioctl on qcom adreno 730 #9

Open
a243845305 opened this issue Jul 3, 2023 · 4 comments
Open

error with ioctl on qcom adreno 730 #9

a243845305 opened this issue Jul 3, 2023 · 4 comments

Comments

@a243845305
Copy link

./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

@youzhedian
Copy link
Collaborator

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

@a243845305
Copy link
Author

我应该已经获取了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权限的方式有误?还是其他什么问题呢?

@youzhedian
Copy link
Collaborator

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

@a243845305
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants