code: def _check_arch(self, arch):
      if arch is None:
          return
      try:
          from pycuda.driver import Context
  
          capability = Context.get_device().compute_capability()
          if tuple(map(int, tuple(arch.split("_")[1]))) > capability:
              from warnings import warn
  
              warn(
                  "trying to compile for a compute capability "
                  "higher than selected GPU"
              )
      except Exception:
          pass
  
imports: from pytools import memoize
  import os
  import sys
  from tempfile import mkstemp
  from os import unlink
  from pytools.prefork import call_capture_output
label_desc: Use image node_id 1 for calling the CudaModule obj's underlying member method code with example usage: obj._check_arch(arch) without return types