code: def run_kernel(self, func, gpu_args, instance):
          
          logging.debug('run_kernel %s', instance.name)
          logging.debug('thread block dims (%d, %d, %d)', *instance.threads)
          logging.debug('grid dims (%d, %d, %d)', *instance.grid)
  
          try:
              self.dev.run_kernel(func, gpu_args, instance.threads, instance.grid)
          except Exception as e:
              if "too many resources requested for launch" in str(e) or "OUT_OF_RESOURCES" in str(e):
                  logging.debug('ignoring runtime failure due to too many resources required')
                  return False
              else:
                  logging.debug('encountered unexpected runtime failure: ' + str(e))
                  raise e
          return True
docs: Run a compiled kernel instance on a device