The GitHub Actions job "Nightly Docker Update" on tvm.git/main has failed.
Run started by GitHub user areusch (triggered by areusch).

Head commit for run:
5989ef57a6c9e845b2ab4851195de3e0f7997304 / ping-ee 
<[email protected]>
[BugFix][OpenCL] Guard QCOM perf hint behind USE_OPENCL_EXTN_QCOM to avoid 
undefined symbol on non-QCOM runtimes (#18589)

This PR is a re-open of #18581 

The previous PR was created while Jenkins CI was experiencing a disk
space issue and the CI job did not trigger.

## PR Description
Recent OpenCL-Headers update
(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.

---------

Co-authored-by: gemini-code-assist[bot] 
<176961590+gemini-code-assist[bot]@users.noreply.github.com>

Report URL: https://github.com/apache/tvm/actions/runs/20321130907

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to