Skip to content

Conversation

@srkreddy1238
Copy link
Contributor

"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);

"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.
Entensions 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);
@tqchen tqchen merged commit 37bca85 into apache:main Nov 14, 2024
18 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
Introduce qualcomm extension support

"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.
Entensions 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);
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

Successfully merging this pull request may close these issues.

2 participants