code: def parse_compute_version(compute_version):
      """Parse compute capability string to divide major and minor version
  
      Parameters
      ----------
      compute_version : str
          compute capability of a GPU (e.g. "6.0")
  
      Returns
      -------
      major : int
          major version number
      minor : int
          minor version number
      """
      split_ver = compute_version.split(".")
      try:
          major = int(split_ver[0])
          minor = int(split_ver[1])
          return major, minor
      except (IndexError, ValueError) as err:
          # pylint: disable=raise-missing-from
          raise RuntimeError(
              "Compute version parsing error: " + str(err)
          )
  
file_path: tvm/python/tvm/contrib/rocm.py
imports: import re
  import subprocess
  import os
  from os.path import join, exists
  import tvm._ffi
  from tvm._ffi.base import py_str
  import tvm.runtime
  import tvm.target
  from .None import utils
label_desc: Use image node_id 5 for calling a global function with example usage: parse_compute_version(compute_version) and returns: major,  minor