code: def mm_grid(m, n, meta):
      """
      The CUDA grid size for matmul triton templates.
      """
      return (cdiv(m, meta["BLOCK_M"]) * cdiv(n, meta["BLOCK_N"]), 1, 1)
  
file_path: pytorch/torch/_inductor/kernel/mm_common.py
imports: import functools
  import logging
  from typing import cast, List, Tuple
  import sympy
  import torch
  from torch._inductor.select_algorithm import realize_inputs
  from torch._inductor.virtualized import V
  from ..None import config
  from ..utils import ceildiv, next_power_of_2
label_desc: Use image node_id 3 for calling a global function with example usage: mm_grid(m, n, meta) and returns: unknown,  int,  int