File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ endif()
3030add_compile_definitions ("MLX_VERSION=${MLX_VERSION} " )
3131
3232# --------------------- Processor tests -------------------------
33-
3433message (
3534 STATUS
3635 "Building MLX for ${CMAKE_SYSTEM_PROCESSOR} processor on ${CMAKE_SYSTEM_NAME} "
@@ -64,6 +63,7 @@ include(FetchContent)
6463cmake_policy (SET CMP0135 NEW)
6564
6665add_library (mlx)
66+ set_target_properties (mlx PROPERTIES COMPILE_WARNING_AS_ERROR ON )
6767
6868if (MLX_BUILD_METAL)
6969 set (METAL_LIB "-framework Metal" )
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ void matmul_bnns(
4343
4444 BNNSDataType bnns_dtype = to_bnns_dtype (out.dtype ());
4545
46+ #pragma GCC diagnostic push
47+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
4648 const BNNSLayerParametersBroadcastMatMul gemm_params{
4749 /* float alpha = */ alpha,
4850 /* float beta = */ beta,
@@ -124,6 +126,7 @@ void matmul_bnns(
124126 }
125127
126128 BNNSFilterDestroy (bnns_filter);
129+ #pragma GCC diagnostic pop
127130}
128131
129132template <>
You can’t perform that action at this time.
0 commit comments