code: def _detect_rocm(dev: Device) -> Target:
      return Target(
          {
              "kind": "rocm",
              "mtriple": "amdgcn-and-amdhsa-hcc",
              "max_shared_memory_per_block": dev.max_shared_memory_per_block,
              "max_threads_per_block": dev.max_threads_per_block,
              "thread_warp_size": dev.warp_size,
          }
      )
  
file_path: tvm/python/tvm/target/detect_target.py
imports: from typing import Union
  from .None import Target
  from .._ffi import get_global_func
  from .._ffi.runtime_ctypes import Device
  from ..runtime.ndarray import device
label_desc: Use image node_id 3 for calling a global function with example usage: _detect_rocm(dev) and returns: Target