code: def get_rtc_compile_opts(device):
      """Get the compile ops suitable for the context, given the toolkit/driver config"""
      device_cc = get_cuda_compute_capability(device)
      max_supported_cc = get_max_supported_compute_capability()
  
      # CUDA toolkits starting with 11.1 (first to support arch 86) can compile directly to SASS
      can_compile_to_SASS = max_supported_cc >= 86
      should_compile_to_SASS = (
          can_compile_to_SASS and device_cc <= max_supported_cc
      )
      device_cc_as_used = min(device_cc, max_supported_cc)
      arch_opt = "--gpu-architecture={}_{}".format(
          "sm" if should_compile_to_SASS else "compute",
          device_cc_as_used,
      )
      return [arch_opt]
  
imports: import ctypes
  import functools
  import inspect
  import threading
  import tempfile
  import platform
  from contextlib import contextmanager
  from struct import calcsize
  from .base import _LIB, check_call, c_str, py_str, numeric_types, integer_types, long, _MAX_VALUE_64_BIT_UNSIGNED_, _MAX_VALUE_64_BIT_SIGNED_, _MAX_VALUE_FLOAT32_REPRESENT_
label_desc: Use image node_id 33 for calling a global function with example usage: get_rtc_compile_opts(device) and returns: list