Skip to content

Commit

Permalink
Disable Metal on intel macs
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jan 4, 2025
1 parent 58ee1f3 commit df2c3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/build_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cmake \
-DCMAKE_C_FLAGS="-arch x86_64" -DCMAKE_CXX_FLAGS="-arch x86_64" \
-DBUILD_SHARED_LIBS=OFF -DCMAKE_FIND_LIBRARY_SUFFIXES=".a" \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP_AMD64}" -DOpenMP_C_LIB_NAMES=omp -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP_AMD64}" -DOpenMP_CXX_LIB_NAMES=omp -DOpenMP_omp_LIBRARY=${LIBOMP_AMD64}/libomp.a \
-DRust_CARGO_TARGET=x86_64-apple-darwin \
-DRust_CARGO_TARGET=x86_64-apple-darwin -DGGML_METAL=OFF \
"$REPO"
make -j${CPUS}

Expand All @@ -64,7 +64,7 @@ cmake \
-DCMAKE_C_FLAGS="-arch x86_64h" -DCMAKE_CXX_FLAGS="-arch x86_64h" \
-DBUILD_SHARED_LIBS=OFF -DCMAKE_FIND_LIBRARY_SUFFIXES=".a" \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP_AMD64}" -DOpenMP_C_LIB_NAMES=omp -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I${LIBOMP_AMD64}" -DOpenMP_CXX_LIB_NAMES=omp -DOpenMP_omp_LIBRARY=${LIBOMP_AMD64}/libomp.a \
-DRust_CARGO_TARGET=x86_64-apple-darwin \
-DRust_CARGO_TARGET=x86_64-apple-darwin -DGGML_METAL=OFF \
"$REPO"
make -j${CPUS}

Expand Down

0 comments on commit df2c3ee

Please sign in to comment.