srkreddy1238 commented on code in PR #13972:
URL: https://github.com/apache/tvm/pull/13972#discussion_r1105532357
##########
src/runtime/contrib/clml/clml_runtime.cc:
##########
@@ -144,6 +144,8 @@ class CLMLRuntime : public JSONRuntimeBase {
workspace = cl::OpenCLWorkspace::Global();
workspace->Init();
tentry = workspace->GetThreadEntry();
+ device_id = workspace->GetCLDeviceID(tentry->device.device_id);
+ platform_id = workspace->device_to_platform[device_id];
Review Comment:
It's unlikely to have multiple OpenCL devices or no OpenCL device on
Snapdragon for now.
Anyway, I will keep the initialization flow clean by looking for
```ExtensionStringPresent``` followed by other assignments.
--
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]