From e4eeb4e91091d8c8392260d573ef5e506d0fa7a7 Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Mon, 2 Dec 2024 16:03:03 +0100 Subject: [PATCH] Added missing unordered_map includes (#1635) * Added missing includes in mlx/io.h and mlx/backend/metal/metal.h * Added additional missing unordered_map includes that fixes build on FreeBSD --- mlx/array.cpp | 1 + mlx/backend/metal/metal.h | 1 + mlx/graph_utils.h | 2 ++ mlx/io.h | 1 + 4 files changed, 5 insertions(+) diff --git a/mlx/array.cpp b/mlx/array.cpp index 8bf007688..d90c7d446 100644 --- a/mlx/array.cpp +++ b/mlx/array.cpp @@ -1,5 +1,6 @@ // Copyright © 2023-2024 Apple Inc. #include +#include #include "mlx/array.h" #include "mlx/ops.h" diff --git a/mlx/backend/metal/metal.h b/mlx/backend/metal/metal.h index 830df4f49..e5cb65afd 100644 --- a/mlx/backend/metal/metal.h +++ b/mlx/backend/metal/metal.h @@ -2,6 +2,7 @@ #pragma once +#include #include #include "mlx/array.h" diff --git a/mlx/graph_utils.h b/mlx/graph_utils.h index d70228dad..affb5e078 100644 --- a/mlx/graph_utils.h +++ b/mlx/graph_utils.h @@ -2,6 +2,8 @@ #pragma once +#include + #include "mlx/array.h" namespace mlx::core { diff --git a/mlx/io.h b/mlx/io.h index 4805d1c87..23380b23e 100644 --- a/mlx/io.h +++ b/mlx/io.h @@ -2,6 +2,7 @@ #pragma once +#include #include #include "mlx/array.h"