Skip to content

Commit c8beaf3

Browse files
Merge branch 'pytorch:main' into win_build
2 parents 77d1428 + e721945 commit c8beaf3

File tree

17 files changed

+283
-253
lines changed

17 files changed

+283
-253
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[submodule "backends/arm/third-party/ethos-u-core-driver"]
22
path = backends/arm/third-party/ethos-u-core-driver
3-
url = https://git.mlplatform.org/ml/ethos-u/ethos-u-core-driver.git/
3+
url = https://github.com/pytorch-labs/ethos-u-core-driver-mirror
44
[submodule "backends/arm/third-party/serialization_lib"]
55
path = backends/arm/third-party/serialization_lib
6-
url = https://git.mlplatform.org/tosa/serialization_lib.git/
6+
url = https://github.com/pytorch-labs/tosa_serialization_lib-mirror
77
[submodule "backends/vulkan/third-party/Vulkan-Headers"]
88
path = backends/vulkan/third-party/Vulkan-Headers
99
url = https://github.com/KhronosGroup/Vulkan-Headers

backends/qualcomm/quantizer/custom_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def annotate_single_in_single_out(
7878
)
7979

8080
def annotate_matmul_input1(node: Node):
81-
quantization_config_8a8w = get_default_8bit_qnn_ptq_config(
81+
quantization_config_8a8w = get_8a8w_qnn_ptq_config(
8282
act_symmetric=True, act_observer=MinMaxObserver
8383
)
8484
while isinstance(node, Node) and node.op == "call_function":

backends/xnnpack/test/ops/linear.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ def _test_linear(
497497
which ares then transformed into aten.linear.default by the ConvertToLinear pass.
498498
"""
499499
for i, _ in enumerate(in_sizes):
500+
torch._dynamo.reset()
500501
in_size = int(in_sizes[i])
501502
input_size = int(input_sizes[i])
502503
output_size = int(output_sizes[i])

docs/source/apple-runtime.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,26 +144,26 @@ ExecuTorch initializes its backends and kernels (operators) during app startup b
144144
Here's an example of a Xcode configuration file (`.xcconfig`):
145145

146146
```
147-
OTHER_LDFLAGS[sdk=iphonesimulator*] = $(inherited) \
148-
-force_load $(BUILT_PRODUCTS_DIR)/libexecutorch-ios-release.a \
149-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_coreml-ios-release.a \
150-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a \
151-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-ios-release.a
152-
153-
OTHER_LDFLAGS[sdk=iphoneos*] = $(inherited) \
154-
-force_load $(BUILT_PRODUCTS_DIR)/libexecutorch-ios-release.a \
155-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_coreml-ios-release.a \
156-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a \
157-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-ios-release.a
158-
159-
OTHER_LDFLAGS[sdk=macos*] = $(inherited) \
160-
-force_load $(BUILT_PRODUCTS_DIR)/libexecutorch-ios-release.a \
161-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_coreml-ios-release.a \
162-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a \
163-
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-ios-release.a
147+
ET_PLATFORM[sdk=iphonesimulator*] = simulator
148+
ET_PLATFORM[sdk=iphoneos*] = ios
149+
ET_PLATFORM[sdk=macos*] = macos
150+
151+
OTHER_LDFLAGS = $(inherited) \
152+
-force_load $(BUILT_PRODUCTS_DIR)/libexecutorch-$(ET_PLATFORM)-release.a \
153+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_coreml-$(ET_PLATFORM)-release.a \
154+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-$(ET_PLATFORM)-release.a \
155+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-$(ET_PLATFORM)-release.a \
156+
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_optimized-$(ET_PLATFORM)-release.a \
157+
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_quantized-$(ET_PLATFORM)-release.a
164158
```
165159

166-
Replace `release` with `debug` in library file names for a Debug mode config respectively. You can assign such `.xcconfig` file to your target in Xcode: add it to your project, navigate to the project's Info tab, and select it in the build configuration for Debug and Release modes.
160+
For a Debug build configuration, replace `release` with `debug` in the library file names. Remember to link against the ExecuTorch runtime (`libexecutorch`) in Debug mode even if other components are built for Release to preserve logs if needed.
161+
162+
You can assign such a config file to your target in Xcode:
163+
164+
1. Add the `.xcconfig` file to your project.
165+
2. Navigate to the project’s Info tab.
166+
3. Select the configuration file in the build configurations for Release (or Debug) mode.
167167

168168
## Runtime API
169169

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@
806806
isa = XCRemoteSwiftPackageReference;
807807
repositoryURL = "https://github.com/pytorch/executorch";
808808
requirement = {
809+
branch = "swiftpm-0.4.0.20241120";
809810
kind = branch;
810-
branch = "swiftpm-0.4.0.20241114";
811811
};
812812
};
813813
/* End XCRemoteSwiftPackageReference section */

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/project.pbxproj

Lines changed: 97 additions & 107 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ET_PLATFORM[sdk=iphonesimulator*] = simulator
2+
ET_PLATFORM[sdk=iphoneos*] = ios
3+
ET_PLATFORM[sdk=macos*] = macos
4+
5+
OTHER_LDFLAGS = $(inherited) \
6+
-force_load $(BUILT_PRODUCTS_DIR)/libexecutorch-$(ET_PLATFORM)-debug.a \
7+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_coreml-$(ET_PLATFORM)-debug.a \
8+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_mps-$(ET_PLATFORM)-debug.a \
9+
-force_load $(BUILT_PRODUCTS_DIR)/libbackend_xnnpack-$(ET_PLATFORM)-debug.a \
10+
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_custom-$(ET_PLATFORM)-debug.a \
11+
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_optimized-$(ET_PLATFORM)-debug.a \
12+
-force_load $(BUILT_PRODUCTS_DIR)/libkernels_quantized-$(ET_PLATFORM)-debug.a \
13+
@$(TEMP_DIR)/cmake/linker_flags
14+
15+
// LLaMARunner requires additional dependencies built with CMake in a custom run script phase.
16+
// Include headers and libraries from $(TEMP_DIR)/cmake for it.
17+
HEADER_SEARCH_PATHS = $(inherited) \
18+
$(SRCROOT)/../../../../.. \
19+
$(TEMP_DIR)/cmake/include
20+
21+
LIBRARY_SEARCH_PATHS = $(inherited) \
22+
$(TEMP_DIR)/cmake/lib

examples/demo-apps/apple_ios/LLaMA/LLaMA/SupportingFiles/LLaMA-Debug.xcconfig

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/demo-apps/apple_ios/LLaMA/LLaMA/SupportingFiles/LLaMA-Release.xcconfig

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/demo-apps/apple_ios/LLaMA/LLaMA/SupportingFiles/LLaMARunner-Debug.xcconfig

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)