parameters: (backend, device, num_ctas, num_warps)
return_statement: return tflops
docstring: return compute throughput in TOPS
docstring_summary: return compute throughput in TOPS
docstring_tokens: return compute throughput in TOPS
function: def get_tensorcore_tflops(backend, device, num_ctas, num_warps):
      ''' return compute throughput in TOPS '''
      total_warps = num_ctas * min(num_warps, 4)
      num_subcores = _triton.runtime.num_sm(backend, device) * 4  # on recent GPUs
      tflops = min(num_subcores, total_warps) / num_subcores * get_max_tensorcore_tflops(backend, device)
      return tflops
function_tokens: def get_tensorcore_tflops ( backend , device , num_ctas , num_warps ) : total_warps = num_ctas * min ( num_warps , 4 ) num_subcores = _triton . runtime . num_sm ( backend , device ) * 4 # on recent GPUs tflops = min ( num_subcores , total_warps ) / num_subcores * get_max_tensorcore_tflops ( backend , device ) return tflops