[OPENCL][ADRENO] Introduce Qualcomm extension support #17519
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
"cl_qcom_perf_hint", "cl_qcom_priority_hint" extn support added over workspace interface.
OpenCL version will be picked up from SDK headers.
CI fixes for build without Adreno OpenCL SDK.
Extensions are activated based on its availability in SDK.
New workspace API "SetNativePtr" defined that releases existing cl_mem and creates new mem object backed by given host ptr.
Works for cl_qcom_ion_host_ptr, cl_qcom_android_ahardwarebuffer_host_ptr, cl_qcom_android_native_buffer_host_ptr, cl_qcom_dmabuf_host_ptr and cl_qcom_ion_host_ptr.
The responsibility of preparing the host_ptr objects is with application.
Some times the application needs device id for various devices related information. Use below ref. to get cl_device_id from workspace.
OpenCLWorkspace* workspace = OpenCLWorkspace::Global();
cl_device_id device_id = workspace->GetCLDeviceID(0);