ping-ee opened a new pull request, #18581: URL: https://github.com/apache/tvm/pull/18581
## PR Description Recent OpenCL-Headers update ([KhronosGroup/OpenCL-Headers#277](https://github.com/KhronosGroup/OpenCL-Headers/pull/277) ) added QCOM perf-hint definitions (`CL_CONTEXT_PERF_HINT_QCOM`, `clSetPerfHintQCOM`) to `cl_ext.h`. These macros are now defined even on platforms whose OpenCL runtimes (e.g., PoCL, ICD loaders) do not implement the QCOM extension. TVM previously enabled the perf-hint code path solely based on the presence of `CL_CONTEXT_PERF_HINT_QCOM`, causing link errors such as: ``` undefined symbol: clSetPerfHintQCOM ``` This PR guards the QCOM perf-hint logic behind `USE_OPENCL_EXTN_QCOM`, matching the behavior of other QCOM-specific OpenCL paths (e.g., `SetNativePtr`). ## Effects - Prevents accidental linking against unsupported QCOM symbols on non-QCOM runtimes. - Keeps QCOM builds fully functional when `USE_OPENCL_EXTN_QCOM` is explicitly enabled. - Aligns TVM’s extension handling across OpenCL code paths. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
