Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlx/backend/cuda/allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void CudaAllocator::move_to_unified_memory(
buf.device = -1;
}

// This must be called with mutex_ aquired
// This must be called with mutex_ acquired
void CudaAllocator::free_cuda_buffer(CudaBuffer* buf) {
if (scalar_pool_.in_pool(buf)) {
scalar_pool_.free(buf);
Expand Down
2 changes: 1 addition & 1 deletion mlx/backend/cuda/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace mlx::core::gpu {

void init() {
// Force initalization of CUDA, so CUDA runtime get destroyed last.
// Force initialization of CUDA, so CUDA runtime get destroyed last.
cudaFree(nullptr);
// Make sure CUDA event pool get destroyed after device and stream.
mlx::core::cu::CudaEvent::init_pool();
Expand Down
2 changes: 1 addition & 1 deletion mlx/backend/metal/kernels/fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ template <int tg_mem_size, typename in_T, typename out_T>
uint3 grid [[threads_per_grid]]) {
// Use Rader's algorithm to compute fast FFTs
// when a prime factor `p` of `n` is greater than 13 but
// has `p - 1` Stockham decomposable into to prime factors <= 13.
// has `p - 1` Stockham decomposable into prime factors <= 13.
//
// E.g. n = 102
// = 2 * 3 * 17
Expand Down
Loading