File tree Expand file tree Collapse file tree 6 files changed +7
-23
lines changed
Expand file tree Collapse file tree 6 files changed +7
-23
lines changed Original file line number Diff line number Diff 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# #############################################################################
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ cd ${ZIP_DIR}/install/lib
1717target_libs=(libc10.a libclog.a libcpuinfo.a libqnnpack.a libtorch.a)
1818for lib in ${target_libs[*]}
1919do
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}
2222done
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 ./
2525lipo -i ${ZIP_DIR} /install/lib/* .a
2626# copy the umbrella header and license
2727cp ${PROJ_ROOT} /ios/LibTorch.h ${ZIP_DIR} /src/
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
160160if (IOS_PLATFORM STREQUAL "OS" )
161- set (DEFAULT_IOS_ARCH "armv7;armv7s; arm64" )
161+ set (DEFAULT_IOS_ARCH "arm64" )
162162elseif (IOS_PLATFORM STREQUAL "SIMULATOR" )
163163 set (DEFAULT_IOS_ARCH "x86_64" )
164164elseif (IOS_PLATFORM STREQUAL "WATCHOS" )
Original file line number Diff line number Diff line change 11Pod ::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++' ]
3536end
You can’t perform that action at this time.
0 commit comments