Skip to content

Commit 032ae0d

Browse files
committed
init
1 parent ac7a950 commit 032ae0d

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/apple-perf.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ jobs:
315315
build-benchmark-app:
316316
name: build-benchmark-app
317317
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
318+
uses: maxim-lobanov/setup-xcode@v1
319+
with:
320+
xcode-version: '16.0'
318321
needs:
319322
- set-parameters
320323
secrets: inherit

build/build_apple_frameworks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -euo pipefail
99

1010
SOURCE_ROOT_DIR=""
11-
OUTPUT="cmake-out"
11+
OUTPUT="cmake-out-apple"
1212
MODE="Release"
1313
TOOLCHAIN=""
1414
PYTHON=$(which python3)
@@ -76,7 +76,7 @@ usage() {
7676
echo "SOURCE_ROOT_DIR defaults to the current directory if not provided."
7777
echo
7878
echo "Options:"
79-
echo " --output=DIR Output directory. Default: 'cmake-out'"
79+
echo " --output=DIR Output directory. Default: 'cmake-out-apple'"
8080
echo " --Debug Use Debug build mode. Default: Uses Release build mode."
8181
echo " --toolchain=FILE Cmake toolchain file. Default: '\$SOURCE_ROOT_DIR/third-party/ios-cmake/ios.toolchain.cmake'"
8282
echo " --python=FILE Python executable path. Default: Path of python3 found in the current \$PATH"
@@ -188,7 +188,7 @@ echo "Exporting headers"
188188
mkdir -p "$HEADERS_PATH"
189189

190190
# Set BUCK2 to the path of the buck2 executable in $OUTPUT/*/buck2-bin/buck2-*
191-
BUCK2=$(find . -type f -path '*/buck2-bin/buck2-*' | head -n 1)
191+
BUCK2=$(find ${SOURCE_ROOT_DIR}/buck2-bin -type f -name "buck2-*" | head -n 1)
192192
if [[ -z "$BUCK2" ]]; then
193193
echo "Could not find buck2 executable in any buck2-bin directory under $OUTPUT"
194194
BUCK2=$(which buck2)

extension/llm/export/partitioner_lib.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ def _validate_ios_version() -> None:
158158
op_linear_quantizer_config=op_linear_quantizer_config,
159159
)
160160

161-
# ExecuTorch does not build CoreML delegate runtime to handle state
162-
# when using OSS scripts, so we define take_over_mutable_buffer = False,
163-
# even when target is iOS18
164-
# take_over_mutable_buffer = minimum_deployment_target >= ct.target.iOS18
165-
take_over_mutable_buffer = False
161+
take_over_mutable_buffer = minimum_deployment_target >= ct.target.iOS18
166162
return CoreMLPartitioner( # pyre-fixme[16]
167163
compile_specs=compile_specs,
168164
take_over_mutable_buffer=take_over_mutable_buffer,

0 commit comments

Comments
 (0)