This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new d3a2ed68a4 [RUNTIME][OPENCL] Bugfix
d3a2ed68a4 is described below
commit d3a2ed68a42f8b51d8ab1533b62e837b9ea74b8e
Author: Siva <[email protected]>
AuthorDate: Tue Dec 24 10:17:15 2024 +0530
[RUNTIME][OPENCL] Bugfix
Internal regression bug to fix compilation issue
---
src/runtime/opencl/opencl_device_api.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/runtime/opencl/opencl_device_api.cc
b/src/runtime/opencl/opencl_device_api.cc
index 7b161e8932..5c5873b67f 100644
--- a/src/runtime/opencl/opencl_device_api.cc
+++ b/src/runtime/opencl/opencl_device_api.cc
@@ -286,7 +286,7 @@ void OpenCLWorkspace::SetNativePtr(const
tvm::runtime::NDArray& narr, void* host
#ifdef USE_OPENCL_EXTN_QCOM
Device dev = narr.operator->()->device;
cl_device_id device_id = GetCLDeviceID(dev.device_id);
- auto platform = device_info[device_id].platform_id;
+ auto platform = device_to_platform[device_id];
OPENCL_CALL(clFinish(this->GetQueue(dev)));
if (desc->host_ptr) {
@@ -313,7 +313,7 @@ void OpenCLWorkspace::SetNativePtr(const
tvm::runtime::NDArray& narr, void* host
void OpenCLWorkspace::SetPerfHint(Device dev, cl_uint perf_hint) {
#ifdef CL_CONTEXT_PERF_HINT_QCOM
cl_device_id device_id = GetCLDeviceID(dev.device_id);
- auto platform = device_info[device_id].platform_id;
+ auto platform = device_to_platform[device_id];
OPENCL_CALL(clSetPerfHintQCOM(this->contexts[platform], perf_hint));
#endif
}