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

Could ICD read *.icd64 files while the loader is a 64-bit program? #137

Open
aranpaop opened this issue Jan 5, 2021 · 0 comments
Open

Comments

@aranpaop
Copy link

aranpaop commented Jan 5, 2021

For example for android, build the 32-bit loader which might be:
/system/vendor/lib/libOpenCL.so
and read .icd files in path:
/system/vendor/Khronos/OpenCL/vendors/vendor*.icd
The file vendor*.icd may contain contents like:
/system/vendor/lib/egl/libXXX_vendor.so

also, build 64-bit loader which might be:
/system/vendor/lib64/libOpenCL.so
and read .icd64 files in path:
/system/vendor/Khronos/OpenCL/vendors/vendor*.icd64
The file vendor*.icd64 may contain contents like:
/system/vendor/lib64/egl/libXXX_vendor.so

Currently I put both 32-bit and 64-bit OpenCL library path with .icd suffix, resulting in that 32-bit programs use 32-bit loader failed to load 64-bit CL library, but the loader always need to try(though each process only try once, I think it should be avoid). And as for 64-bit programs, 64-bit loader also tries to load 32-bit CL library even if it's useless.

thanks!

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

1 participant