code: def get_fast_inaccurate_build_options(dev):
      """Return a list of flags valid on device *dev* that enable fast, but
      potentially inaccurate floating point math.
      """
      result = [
          "-cl-mad-enable",
          "-cl-fast-relaxed-math",
          "-cl-no-signed-zeros",
      ]
      if dev.vendor.startswith(
          "Advanced Micro"
      ) or dev.vendor.startswith("NVIDIA"):
          result.append("-cl-strict-aliasing")
      return result
  
imports: import pyopencl
  from pytools import memoize
  from typing import Dict, Optional, Tuple
label_desc: Use image node_id 10 for calling a global function with example usage: get_fast_inaccurate_build_options(dev) and returns: result