IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

enqueue_matmul_kernel_naive

def enqueue_matmul_kernel_naive[EpilogueFnType: ElementwiseEpilogueFn, ComputeFnType: ElementwiseComputeFn, //, *, transpose_b: Bool, has_epilogue_fn: Bool, has_compute_fn: Bool](c: TileTensor[Engine=c.Engine, address_space=c.address_space, linear_idx_type=c.linear_idx_type], a: TileTensor[Engine=a.Engine, address_space=a.address_space, linear_idx_type=a.linear_idx_type], b: TileTensor[Engine=b.Engine, address_space=b.address_space, linear_idx_type=b.linear_idx_type], epilogue_fn: EpilogueFnType, compute_fn: ComputeFnType, ctx: DeviceContextBase)

Enqueues matmul_kernel_naive, storing through epilogue_fn when has_epilogue_fn is set, or storing compute_fn of each output when has_compute_fn is set.

Parameters:

  • ​EpilogueFnType (ElementwiseEpilogueFn): Type of epilogue_fn (inferred).
  • ​ComputeFnType (ElementwiseComputeFn): Type of compute_fn (inferred).
  • ​transpose_b (Bool): Whether b is stored as (N, K).
  • ​has_epilogue_fn (Bool): Whether epilogue_fn stores the output.
  • ​has_compute_fn (Bool): Whether compute_fn maps the output before it is stored.

Args:

Was this page helpful?