-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configured libblastrampoline via CMake 3.30 BLA_VENDOR variable, but keeping BLAS/LAPACK INCLUDE_DIRS as the MLX CMakeLists set-up is likely not fully compatible. * Using OpenBLAS for aarch64-unknown-freebsd instead of libblastrampoline. * Using OpenBLAS for armv6l instead of libblastrampoline.
- Loading branch information
Showing
4 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/mlx/ops.cpp b/mlx/ops.cpp | ||
index f1ca2e94..067f4ff2 100644 | ||
--- a/mlx/ops.cpp | ||
+++ b/mlx/ops.cpp | ||
@@ -824,7 +824,7 @@ array slice_update( | ||
|
||
// Broadcast update with unspecified axes | ||
auto up_shape = update.shape(); | ||
- auto dim_diff = std::max(src.ndim() - update.ndim(), 0ul); | ||
+ auto dim_diff = std::max(src.ndim() - update.ndim(), (size_t)0); | ||
up_shape.insert( | ||
up_shape.begin(), src.shape().begin(), src.shape().begin() + dim_diff); | ||
for (int d = dim_diff; d < src.ndim(); ++d) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/mlx/backend/common/jit_compiler.cpp b/mlx/backend/common/jit_compiler.cpp | ||
index 34d57138..e017f604 100644 | ||
--- a/mlx/backend/common/jit_compiler.cpp | ||
+++ b/mlx/backend/common/jit_compiler.cpp | ||
@@ -133,7 +133,7 @@ std::string JitCompiler::exec(const std::string& cmd) { | ||
if (status == -1) { | ||
throw std::runtime_error("pclose() failed."); | ||
} | ||
-#ifdef _MSC_VER | ||
+#if defined(_WIN32) || defined(__FreeBSD__) | ||
int code = status; | ||
#else | ||
int code = WEXITSTATUS(status); |