Skip to content

Commit 3051e36

Browse files
xta0facebook-github-bot
authored andcommitted
Remove armv7s build from iOS (#26222)
Summary: Pull Request resolved: #26222 ### Summary The last generation of armv7s device is Phone 5C. As discussed with David offline, we decided not to support iOS armv7s devices. ### Test plan - CI finishes successfully - Builds can be run only on X86_64 and arm64 devices Test Plan: Imported from OSS Differential Revision: D17385308 Pulled By: xta0 fbshipit-source-id: f883999aed18224ea3386b1f016964a33270fa34
1 parent 5f9cbfa commit 3051e36

File tree

6 files changed

+7
-23
lines changed

6 files changed

+7
-23
lines changed

.circleci/config.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,21 +3032,13 @@ workflows:
30323032
ios_platform: "OS"
30333033
requires:
30343034
- setup
3035-
- binary_ios_build:
3036-
name: pytorch_ios_10_2_1_nightly_armv7s_build
3037-
build_environment: "libtorch-ios-10.2.1-nightly-armv7s-build"
3038-
ios_arch: "armv7s"
3039-
ios_platform: "OS"
3040-
requires:
3041-
- setup
30423035
- binary_ios_upload:
30433036
build_environment: "libtorch-ios-10.2.1-nightly-binary-build-upload"
30443037
context: org-member
30453038
requires:
30463039
- setup
30473040
- pytorch_ios_10_2_1_nightly_x86_64_build
30483041
- pytorch_ios_10_2_1_nigthly_arm64_build
3049-
- pytorch_ios_10_2_1_nightly_armv7s_build
30503042
##############################################################################
30513043
# Nightly tests
30523044
##############################################################################

.circleci/scripts/binary_ios_upload.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ cd ${ZIP_DIR}/install/lib
1717
target_libs=(libc10.a libclog.a libcpuinfo.a libqnnpack.a libtorch.a)
1818
for lib in ${target_libs[*]}
1919
do
20-
libs=(${ARTIFACTS_DIR}/x86_64/lib/${lib} ${ARTIFACTS_DIR}/arm64/lib/${lib} ${ARTIFACTS_DIR}/armv7s/lib/${lib} )
20+
libs=(${ARTIFACTS_DIR}/x86_64/lib/${lib} ${ARTIFACTS_DIR}/arm64/lib/${lib})
2121
lipo -create "${libs[@]}" -o ${ZIP_DIR}/install/lib/${lib}
2222
done
23-
# for nnpack, we only support arm64/armv7s build
24-
lipo -create ${ARTIFACTS_DIR}/arm64/lib/libnnpack.a ${ARTIFACTS_DIR}/armv7s/lib/libnnpack.a -o ${ZIP_DIR}/install/lib/libnnpack.a
23+
# for nnpack, we only support arm64 build
24+
cp ${ARTIFACTS_DIR}/arm64/lib/libnnpack.a ./
2525
lipo -i ${ZIP_DIR}/install/lib/*.a
2626
# copy the umbrella header and license
2727
cp ${PROJ_ROOT}/ios/LibTorch.h ${ZIP_DIR}/src/

.circleci/scripts/should_run_job.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
'libtorch 2.7m cpu gcc5.4_cxx11-abi',
3838
'libtorch-ios-10.2.1-nightly-x86_64-build',
3939
'libtorch-ios-10.2.1-nightly-arm64-build',
40-
'libtorch-ios-10.2.1-nightly-armv7s-build',
4140
'libtorch-ios-10.2.1-nightly-binary-build-upload',
4241

4342
# Caffe2 Android

.circleci/verbatim-sources/workflows-nightly-ios-binary-builds.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
ios_platform: "OS"
1414
requires:
1515
- setup
16-
- binary_ios_build:
17-
name: pytorch_ios_10_2_1_nightly_armv7s_build
18-
build_environment: "libtorch-ios-10.2.1-nightly-armv7s-build"
19-
ios_arch: "armv7s"
20-
ios_platform: "OS"
21-
requires:
22-
- setup
2316
- binary_ios_upload:
2417
build_environment: "libtorch-ios-10.2.1-nightly-binary-build-upload"
2518
context: org-member
2619
requires:
2720
- setup
2821
- pytorch_ios_10_2_1_nightly_x86_64_build
2922
- pytorch_ios_10_2_1_nigthly_arm64_build
30-
- pytorch_ios_10_2_1_nightly_armv7s_build

cmake/iOS.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ set (CMAKE_OSX_SYSROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Sysroot used for iOS su
158158

159159
# set the architecture for iOS
160160
if (IOS_PLATFORM STREQUAL "OS")
161-
set (DEFAULT_IOS_ARCH "armv7;armv7s;arm64")
161+
set (DEFAULT_IOS_ARCH "arm64")
162162
elseif (IOS_PLATFORM STREQUAL "SIMULATOR")
163163
set (DEFAULT_IOS_ARCH "x86_64")
164164
elseif (IOS_PLATFORM STREQUAL "WATCHOS")

ios/LibTorch.podspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'LibTorch'
3-
s.version = '0.0.2'
3+
s.version = '0.0.3'
44
s.authors = 'PyTorch Team'
55
s.license = { :type => 'BSD' }
66
s.homepage = 'https://github.com/pytorch/pytorch'
@@ -9,6 +9,7 @@ Pod::Spec.new do |s|
99
s.description = <<-DESC
1010
The PyTorch C++ library for iOS.
1111
DESC
12+
s.ios.deployment_target = '12.0'
1213
s.default_subspec = 'Core'
1314
s.subspec 'Core' do |ss|
1415
ss.dependency 'LibTorch/Torch'
@@ -29,7 +30,7 @@ Pod::Spec.new do |s|
2930
}
3031
s.pod_target_xcconfig = {
3132
'HEADER_SEARCH_PATHS' => '$(inherited) "$(PODS_ROOT)/LibTorch/install/include/"',
32-
'VALID_ARCHS' => 'x86_64 armv7s arm64'
33+
'VALID_ARCHS' => 'x86_64 arm64'
3334
}
3435
s.library = ['c++', 'stdc++']
3536
end

0 commit comments

Comments
 (0)