Skip to content

Commit

Permalink
Add Metal HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
powderluv authored and github-actions[bot] committed Jun 16, 2023
1 parent 4f02eea commit 58bc4c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build_tools/python_deploy/build_macos_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packages="${packages:-iree-runtime iree-compiler}"

# Note that this typically is selected to match the version that the official
# Python distributed is built at.
export MACOSX_DEPLOYMENT_TARGET=11.0
export MACOSX_DEPLOYMENT_TARGET=13.0

# cpuinfo is incompatible with universal builds.
export IREE_ENABLE_CPUINFO=OFF
Expand Down Expand Up @@ -81,6 +81,7 @@ function run() {

function build_iree_runtime() {
IREE_HAL_DRIVER_VULKAN=ON \
IREE_EXTERNAL_HAL_DRIVERS=metal \
python3 -m pip wheel -v -w $output_dir $repo_root/runtime/
}

Expand All @@ -89,10 +90,12 @@ function build_iree_runtime_instrumented() {
# Add IREE_BUILD_TRACY=ON once it is.
IREE_HAL_DRIVER_VULKAN=ON IREE_ENABLE_RUNTIME_TRACING=ON \
IREE_RUNTIME_CUSTOM_PACKAGE_SUFFIX="-instrumented" \
IREE_EXTERNAL_HAL_DRIVERS=metal \
python3 -m pip wheel -v -w $output_dir $repo_root/runtime/
}

function build_iree_compiler() {
IREE_TARGET_BACKEND_METAL=ON \
python3 -m pip wheel -v -w $output_dir $repo_root/compiler/
}

Expand Down

0 comments on commit 58bc4c4

Please sign in to comment.