Skip to content

Commit

Permalink
Revert "[mobile] add buck build for mobile targets (pytorch#76480)"
Browse files Browse the repository at this point in the history
This reverts commit 168dc70.

Reverted pytorch#76480 on behalf of https://github.com/atalman
  • Loading branch information
pytorchmergebot committed May 16, 2022
1 parent 9d3ffed commit 530481e
Show file tree
Hide file tree
Showing 24 changed files with 4 additions and 4,356 deletions.
15 changes: 0 additions & 15 deletions .buckconfig.oss

This file was deleted.

53 changes: 3 additions & 50 deletions .github/workflows/buck_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,54 +63,7 @@ jobs:
wget https://github.com/facebook/buck/releases/download/v2021.01.12.01/buck.2021.01.12.01_all.deb
sudo apt install ./buck.2021.01.12.01_all.deb
- name: Download third party libraries and generate wrappers
- name: Build Buck target
run: |
sh scripts/buck_setup.sh
- name: Build glog
run: |
buck build third_party:glog
- name: Build C10
run: |
buck build c10:c10
- name: Build cpuinfo
run: |
buck build third_party:cpuinfo
- name: Build pthreadpool
run: |
buck build third_party:pthreadpool
- name: Build XNNPACK
run: |
buck build third_party:XNNPACK
- name: Build QNNPACK
run: |
buck build aten/src/ATen/native/quantized/cpu/qnnpack/... --keep-going
- name: Build aten_cpu
run: |
buck build :aten_cpu
- name: Build torch_mobile_core
run: |
buck build :torch_mobile_core
- name: Build torch_mobile_all_ops
run: |
buck build :torch_mobile_all_ops
- name: Build mobile benchmark
run: |
buck build :ptmobile_benchmark
- name: Run lite interpreter model
run: |
buck run :ptmobile_benchmark -- --model=ios/TestApp/models/mobilenet_v2.ptl --input_dims=1,3,224,224 --input_type=float
- name: Build everything
run: |
buck build //... --keep-going
echo -e "[buildfile]\n name = BUILD.buck\n" > .buckconfig
buck build --keep-going //third_party:
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,3 @@ pr.diff
.lsp-buck-out/
.lsp.buckd/
buck-out/

# Downloaded libraries
third_party/ruy/
third_party/glog/
4 changes: 0 additions & 4 deletions .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ include_patterns = [
'torch/utils/benchmark/utils/timer.py',
'torch/utils/benchmark/utils/valgrind_wrapper/**/*.py',
]
exclude_patterns = [
# (linbinyu) copied from internal repo
'tools/code_analyzer/gen_operators_yaml.py',
]
command = [
'python3',
'tools/linter/adapters/mypy_linter.py',
Expand Down
Loading

0 comments on commit 530481e

Please sign in to comment.