Skip to content

Commit e7c9c84

Browse files
authored
Pin to release/1.0 (#98)
1 parent 9fc32b1 commit e7c9c84

File tree

17 files changed

+30
-26
lines changed

17 files changed

+30
-26
lines changed

.gitmodules

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
[submodule "efficient_sam/wasm/executorch"]
2-
path = efficient_sam/wasm/executorch
3-
url = https://github.com/pytorch/executorch.git
4-
5-
[submodule "mv2/cpp/executorch"]
6-
path = mv2/cpp/executorch
7-
url = https://github.com/pytorch/executorch.git
8-
branch = release/0.6
9-
10-
[submodule "mv2/wasm/executorch"]
11-
path = mv2/wasm/executorch
1+
[submodule "third-party/executorch"]
2+
path = third-party/executorch
123
url = https://github.com/pytorch/executorch.git
4+
branch = release/1.0
135

146
[submodule "program-data-separation/cpp/executorch"]
157
path = program-data-separation/cpp/executorch
168
url = https://github.com/pytorch/executorch.git
179
branch = release/0.7
18-
19-
[submodule "stories110M/wasm/executorch"]
20-
path = stories110M/wasm/executorch
21-
url = https://github.com/pytorch/executorch.git

efficient_sam/wasm/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# cmake-format -i CMakeLists.txt
99
# ~~~
1010

11+
cmake_minimum_required(VERSION 3.19)
12+
project(efficient_sam_wasm_demo)
13+
1114
add_subdirectory("executorch")
1215

1316
add_executable(executorch_wasm_demo_lib)

efficient_sam/wasm/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ emcmake cmake . -DEXECUTORCH_BUILD_WASM=ON \
1111
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
1212
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
1313
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
14+
-DEXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP=ON \
1415
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
1516
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
1617
-DEXECUTORCH_BUILD_XNNPACK=ON \

efficient_sam/wasm/executorch

Lines changed: 0 additions & 1 deletion
This file was deleted.

efficient_sam/wasm/executorch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../third-party/executorch

efficient_sam/wasm/export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
cd executorch
99

10-
python3 -c "
10+
python -c "
1111
from examples.models.model_factory import EagerModelFactory
1212
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
1313
from executorch.exir import to_edge_transform_and_lower

mv2/cpp/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ project(executorch_mv2_demo CXX)
44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

7-
# Set options for executorch build.
8-
option(EXECUTORCH_ENABLE_LOGGING "" ON)
7+
# Set options for executorch build (based on linux/llm preset)
98
option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER "" ON)
9+
option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR "" ON)
1010
option(EXECUTORCH_BUILD_EXTENSION_MODULE "" ON)
11+
option(EXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP "" ON)
1112
option(EXECUTORCH_BUILD_EXTENSION_TENSOR "" ON)
1213
option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED "" ON)
1314
option(EXECUTORCH_BUILD_XNNPACK "" ON)
15+
option(EXECUTORCH_XNNPACK_ENABLE_KLEIDI "" OFF)
1416

1517
# Add ExecuTorch subdirectory
1618
add_subdirectory("executorch")

mv2/cpp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a simple C++ demo application that uses the ExecuTorch library for Mobil
66

77
0. Export the model. See [mv2/python/README.md](../python/README.md)
88

9-
1. The ExecuTorch repository is already configured as a git submodule at `~/executorch-examples/mv2/cpp/executorch/`. To initialize it:
9+
1. The ExecuTorch repository is configured as a git submodule at `~/executorch-examples/third-party/executorch/`, with `mv2/cpp/executorch` being a symlink to it. To initialize:
1010
```bash
1111
cd ~/executorch-examples/
1212
git submodule sync
@@ -36,7 +36,7 @@ This is a simple C++ demo application that uses the ExecuTorch library for Mobil
3636

3737
- CMake 3.18 or higher
3838
- C++17 compatible compiler
39-
- ExecuTorch library (release/0.6)
39+
- ExecuTorch library (release/1.0)
4040

4141
## Notes
4242

mv2/cpp/executorch

Lines changed: 0 additions & 1 deletion
This file was deleted.

mv2/cpp/executorch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../third-party/executorch

0 commit comments

Comments
 (0)