From e74e5939487a7bcd4f07b96470fb2b4c636e8a4f Mon Sep 17 00:00:00 2001 From: Angelos Katharopoulos Date: Mon, 14 Jul 2025 00:53:09 -0700 Subject: [PATCH] Typo --- mlx/backend/cuda/compiled.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/backend/cuda/compiled.cpp b/mlx/backend/cuda/compiled.cpp index d270bee7a..2d08b8fe1 100644 --- a/mlx/backend/cuda/compiled.cpp +++ b/mlx/backend/cuda/compiled.cpp @@ -71,7 +71,7 @@ struct FusedKernelBuilder { // Index. For non contiguous kernels we create a separate index // variable per variable otherwise everyone uses `index`. os += - " IdxT index = cg::this_grid().thread_rank() * W;\n" + " IdxT index = cg::this_grid().thread_rank() * work_per_thread;\n" " if (index >= size) {\n" " return;\n" " }\n";