echuraev commented on code in PR #16854:
URL: https://github.com/apache/tvm/pull/16854#discussion_r1559107440
##########
python/tvm/target/detect_target.py:
##########
@@ -58,6 +58,17 @@ def _detect_rocm(dev: Device) -> Target:
)
+def _detect_opencl(dev: Device) -> Target:
+ return Target(
+ {
+ "kind": "opencl",
Review Comment:
Sorry, probably my question wasn't clear. Yes, I know that we can get such
information from target. But I'm curious if we can get this information from
the device somehow?
Probably, we can specify by an addition parameter to
`Target.from_device(input_device)`. For example:
`Target.from_device(input_device, '-device=adreno')` will specify target as
`"kind": "opencl -device=adreno"`. Does it make sense?
--
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]