def _parse_cc(text):
 if (not text):
  return None
 else:
  m = re.match('(\\d+)\\.(\\d+)', text)
  if (not m):
   raise ValueError('NUMBA_FORCE_CUDA_CC must be specified as a string of "major.minor" where major and minor are decimals')
  grp = m.groups()
  return (int(grp[0]), int(grp[1]))

def _parse_cc ( text ) : if ( not text ) : return None else : m = re . match ( '(\\d+)\\.(\\d+)' , text ) if ( not m ) : raise ValueError ( 'NUMBA_FORCE_CUDA_CC must be specified as a string of "major.minor" where major and minor are decimals' ) grp = m . groups ( ) return ( int ( grp [ 0 ] ) , int ( grp [ 1 ] ) )
parse cuda compute capability version string .