Skip to content

Commit 6c42a37

Browse files
authored
Merge branch 'main' into export-D80132832
2 parents b47ce84 + 30a6f5e commit 6c42a37

File tree

98 files changed

+2828
-2251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2828
-2251
lines changed

.ci/scripts/zephyr-utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# LICENSE file in the root directory of this source tree.
77

88
download_arm_zephyr_sdk () {
9-
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.0/zephyr-sdk-0.16.0_linux-x86_64.tar.xz
10-
tar -xf zephyr-sdk-0.16.0_linux-x86_64.tar.xz
11-
rm -f zephyr-sdk-0.16.0_linux-x86_64.tar.xz
9+
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/zephyr-sdk-0.17.2_linux-x86_64.tar.xz
10+
tar -xf zephyr-sdk-0.17.2_linux-x86_64.tar.xz
11+
rm -f zephyr-sdk-0.17.2_linux-x86_64.tar.xz
1212
}
1313

1414
setup_zephyr_et_module () {

.github/workflows/add-unanswered-to-project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Add Open External Contributor PRs and Issues to PyTorch Org Project 136
22

33
on:
4-
schedule:
5-
- cron: '0 * * * *'
4+
# schedule:
5+
# - cron: '0 * * * *'
66
workflow_dispatch:
77

88
jobs:
@@ -12,7 +12,7 @@ jobs:
1212
- name: Add open issues and open, non-draft PRs to org project (excluding certain authors)
1313
uses: actions/github-script@v7
1414
with:
15-
github-token: ${{ secrets.PYTORCH_PROJECT_PAT }}
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
1616
script: |
1717
const projectId = "PVT_kwDOAUB9vs4A_PUL"; // PyTorch org project 136
1818
const owner = 'pytorch';

.github/workflows/trunk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
9393
# TODO @Bujji: Should see if this can be moved into the docker image itself
9494
download_arm_zephyr_sdk
95-
./zephyr-sdk-0.16.0/setup.sh -c -t arm-zephyr-eabi
95+
./zephyr-sdk-0.17.2/setup.sh -c -t arm-zephyr-eabi
9696
cd $ZEPHYR_PROJ_ROOT
9797
setup_zephyr_et_module
9898

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
cmake_minimum_required(VERSION 3.29)
5151
project(executorch)
5252

53+
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
54+
5355
include(${PROJECT_SOURCE_DIR}/tools/cmake/common/preset.cmake)
56+
include(${PROJECT_SOURCE_DIR}/tools/cmake/Codegen.cmake)
5457
include(${PROJECT_SOURCE_DIR}/tools/cmake/Utils.cmake)
5558
include(CMakeDependentOption)
5659
include(ExternalProject)
@@ -123,8 +126,6 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
123126
# Instead please use `find_package(executorch REQUIRED)` in the example
124127
# directory and add a new executable in the example `CMakeLists.txt`.
125128

126-
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
127-
128129
if(NOT EXECUTORCH_ENABLE_LOGGING)
129130
# Avoid pulling in the logging strings, which can be large. Note that this
130131
# will set the compiler flag for all targets in this directory, and for all
@@ -320,6 +321,7 @@ if(NOT EXECUTORCH_SRCS_FILE)
320321
message(STATUS "executorch: Generating source lists")
321322
set(EXECUTORCH_SRCS_FILE "${CMAKE_CURRENT_BINARY_DIR}/executorch_srcs.cmake")
322323
extract_sources(${EXECUTORCH_SRCS_FILE})
324+
executorch_validate_build_variables()
323325
endif()
324326

325327
# This file defines the `_<target>__srcs` variables used below.

CMakePresets.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@
66
"hidden": true,
77
"binaryDir": "${sourceDir}/cmake-out"
88
},
9+
{
10+
"name": "android-arm64-v8a",
11+
"displayName": "Build executorch core and JNI bindings on android arm64-v8a",
12+
"inherits": ["common"],
13+
"binaryDir": "${sourceDir}/cmake-out-android-arm64-v8a",
14+
"cacheVariables": {
15+
"EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/android.cmake",
16+
"ANDROID_ABI": "arm64-v8a"
17+
},
18+
"condition": {
19+
"type": "inList",
20+
"string": "${hostSystemName}",
21+
"list": ["Darwin", "Linux", "Windows"]
22+
}
23+
},
24+
{
25+
"name": "android-x86_64",
26+
"displayName": "Build executorch core and JNI bindings on android x86_64",
27+
"inherits": ["common"],
28+
"binaryDir": "${sourceDir}/cmake-out-android-x86_64",
29+
"cacheVariables": {
30+
"EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/android.cmake",
31+
"ANDROID_ABI": "x86_64"
32+
},
33+
"condition": {
34+
"type": "inList",
35+
"string": "${hostSystemName}",
36+
"list": ["Darwin", "Linux", "Windows"]
37+
}
38+
},
939
{
1040
"name": "macos",
1141
"displayName": "Build ExecuTorch for macOS",

backends/apple/coreml/TARGETS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ runtime.python_test(
120120
"test/*.py",
121121
]),
122122
deps = [
123-
"fbsource//third-party/pypi/coremltools:coremltools",
124123
"fbsource//third-party/pypi/pytest:pytest",
125124
":partitioner",
126125
":quantizer",

0 commit comments

Comments
 (0)