From 543c7cf86df3d280195b08ad7171f00deb029e7b Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Wed, 8 Oct 2025 16:38:20 -0700 Subject: [PATCH] typos --- mlx/backend/cuda/device/utils.cuh | 4 ++-- mlx/backend/cuda/kernel_utils.cuh | 6 +++--- mlx/backend/cuda/utils.h | 2 +- python/tests/test_compile.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mlx/backend/cuda/device/utils.cuh b/mlx/backend/cuda/device/utils.cuh index 7ebc5d654..2e017ba21 100644 --- a/mlx/backend/cuda/device/utils.cuh +++ b/mlx/backend/cuda/device/utils.cuh @@ -1,6 +1,6 @@ // Copyright © 2025 Apple Inc. -// This file must not include any host-only code, utilies that work under both +// This file must not include any host-only code, utilities that work under both // host and device can be put here. // // See more about the requirements at: @@ -202,7 +202,7 @@ struct Limits< } }; -// CUDA 11 does not have host side arithmatic operators for half types. +// CUDA 11 does not have host side arithmetic operators for half types. template struct Limits< T, diff --git a/mlx/backend/cuda/kernel_utils.cuh b/mlx/backend/cuda/kernel_utils.cuh index 7a37361ea..16a21abc1 100644 --- a/mlx/backend/cuda/kernel_utils.cuh +++ b/mlx/backend/cuda/kernel_utils.cuh @@ -1,8 +1,8 @@ // Copyright © 2025 Apple Inc. -// This file includes host-only utilies for writing CUDA kernels, the difference -// from backend/cuda/device/utils.cuh is that the latter file only include -// device-only code. +// This file includes host-only utilities for writing CUDA kernels, the +// difference from backend/cuda/device/utils.cuh is that the latter file only +// include device-only code. #pragma once diff --git a/mlx/backend/cuda/utils.h b/mlx/backend/cuda/utils.h index e811d5e6c..28082b762 100644 --- a/mlx/backend/cuda/utils.h +++ b/mlx/backend/cuda/utils.h @@ -1,6 +1,6 @@ // Copyright © 2025 Apple Inc. -// This file include utilies that are used by C++ code (i.e. .cpp files). +// This file include utilities that are used by C++ code (i.e. .cpp files). #pragma once diff --git a/python/tests/test_compile.py b/python/tests/test_compile.py index 5eb32ce4d..5321b5ce0 100644 --- a/python/tests/test_compile.py +++ b/python/tests/test_compile.py @@ -319,7 +319,7 @@ class TestCompile(mlx_tests.MLXTestCase): # Check the state is unchanged self.assertEqual(state["y"], 2) - # Check the udpated state is used + # Check the updated state is used state["y"] = mx.array(3) out = test_state(mx.array(1)) self.assertEqual(out.item(), 4)