From 0d5e7716ad0adadae215ece6eb70861a6a8b55a3 Mon Sep 17 00:00:00 2001 From: Cocoa Date: Wed, 20 Nov 2024 23:30:51 +0000 Subject: [PATCH] fix typo: accross -> across (#1609) Signed-off-by: Cocoa --- docs/src/install.rst | 2 +- tests/compile_tests.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/install.rst b/docs/src/install.rst index 7c68942f4..1566d1f2c 100644 --- a/docs/src/install.rst +++ b/docs/src/install.rst @@ -209,7 +209,7 @@ Metal library by run-time compiling kernels the first time they are used in MLX on a given machine. Note run-time compilation incurs a cold-start cost which can be anwywhere from a few hundred millisecond to a few seconds depending on the application. Once a kernel is compiled, it will be cached by the system. The -Metal kernel cache persists accross reboots. +Metal kernel cache persists across reboots. Troubleshooting ^^^^^^^^^^^^^^^ diff --git a/tests/compile_tests.cpp b/tests/compile_tests.cpp index 72f3fd0fa..d1ca59c99 100644 --- a/tests/compile_tests.cpp +++ b/tests/compile_tests.cpp @@ -495,15 +495,15 @@ TEST_CASE("test compile tape with outside parents") { } } -auto compile_accross_streams(const std::vector& inputs) { +auto compile_across_streams(const std::vector& inputs) { auto s2 = new_stream(default_device()); auto x = exp(abs(inputs[0])); auto y = exp(abs(x, s2), s2); return std::vector{y}; } -TEST_CASE("test compile accross streams") { - auto cfun = compile(compile_accross_streams); +TEST_CASE("test compile across streams") { + auto cfun = compile(compile_across_streams); auto x = array({2.0f}); auto out = cfun({x})[0]; auto& p1 = out.primitive();