parameters: (generate_csv=False)
return_statement: return create_gpu_capa_map(matches, generate_csv)
docstring: Retrieves list of all CUDA compute capability from NVIDIA webpage.
  
    Args:
      generate_csv: Boolean for generating an output file containing
                    the results.
  
    Returns:
      OrderedDict that is a list of all CUDA compute capability listed on the
      NVIDIA page. Order goes from top to bottom of the webpage content (.html).
docstring_summary: Retrieves list of all CUDA compute capability from NVIDIA webpage.
docstring_tokens: Retrieves list of all CUDA compute capability from NVIDIA webpage .
function: def retrieve_from_web(generate_csv=False):
    """Retrieves list of all CUDA compute capability from NVIDIA webpage.
  
    Args:
      generate_csv: Boolean for generating an output file containing
                    the results.
  
    Returns:
      OrderedDict that is a list of all CUDA compute capability listed on the
      NVIDIA page. Order goes from top to bottom of the webpage content (.html).
    """
    url = "https://developer.nvidia.com/cuda-gpus"
    source = urllib.urlopen(url)
    matches = []
    while True:
      line = source.readline()
      if "</html>" in line:
        break
      else:
        gpu = re.search(
            r"<a href=.*>([\w\S\s\d\[\]\,]+[^*])</a>(<a href=.*)?.*",
            line
        )
        capability = re.search(
            r"([\d]+).([\d]+)(/)?([\d]+)?(.)?([\d]+)?.*</td>.*",
            line
        )
        if gpu:
          matches.append(gpu.group(1))
        elif capability:
          if capability.group(3):
            capability_str = capability.group(4) + "." + capability.group(6)
          else:
            capability_str = capability.group(1) + "." + capability.group(2)
          matches.append(capability_str)
  
    return create_gpu_capa_map(matches, generate_csv)
function_tokens: def retrieve_from_web ( generate_csv = False ) : url = "https://developer.nvidia.com/cuda-gpus" source = urllib . urlopen ( url ) matches = [ ] while True : line = source . readline ( ) if "</html>" in line : break else : gpu = re . search ( r"<a href=.*>([\w\S\s\d\[\]\,]+[^*])</a>(<a href=.*)?.*" , line ) capability = re . search ( r"([\d]+).([\d]+)(/)?([\d]+)?(.)?([\d]+)?.*</td>.*" , line ) if gpu : matches . append ( gpu . group ( 1 ) ) elif capability : if capability . group ( 3 ) : capability_str = capability . group ( 4 ) + "." + capability . group ( 6 ) else : capability_str = capability . group ( 1 ) + "." + capability . group ( 2 ) matches . append ( capability_str ) return create_gpu_capa_map ( matches , generate_csv )