Skip to content

Commit e45008e

Browse files
committed
Add metal headers on macos
1 parent 2fdedc2 commit e45008e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ env:
3232
SCOTCH_VERSION: "v7.0.9"
3333
NLOPT_VERSION: "v2.10.0"
3434
CUDA_REDIST_VERSION: "13.2.51"
35+
METALCPP_VERSION: "macOS14.2_iOS17.2"
3536
concurrency:
3637
group: release-${{ github.ref }}
3738
cancel-in-progress: true

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,11 @@ cd ../../
830830

831831
install_cuda_bundle
832832

833+
if [ "$OS" = "osx-arm64" ]; then
834+
wget "https://developer.apple.com/metal/cpp/files/metal-cpp_${METALCPP_VERSION}.zip" -O metalcpp.zip
835+
unzip metalcpp.zip -d "${INSTALL_PREFIX}"
836+
fi
837+
833838
ccache --show-stats
834839

835840
mkdir artefacts

0 commit comments

Comments
 (0)