Add libtorch android build with shared lib for 4 android abis (#25192)
Summary:
In current pytorch/master we have only libtorch android build for static libraries for armv7
This change adds the same builds with shared library to circleCI, abis: x86, x86_64, arm
-v7a, arm-v8a
In pytorch_build_data.py I added new AndroidAbiConfigNode:
class AndroidAbiConfigNode(TreeConfigNode):
def init2(self, node_name):
self.props["android_abi"] = node_name
def child_constructor(self):
return ImportantConfigNode
That can be children of
ExperimentalFeatureConfigNode
And it results:
("android", [
("r19c", [
("3.6", [
("android_abi", [XImportant("x86")]),
("android_abi", [XImportant("x86_64")]),
("android_abi", [XImportant("arm-v7a")]),
("android_abi", [XImportant("arm-v8a")]),
])
]),
]),
As all parameters are used for docker_image_name generation, while I wanted to use the same docker image for all android jobs - I introduced in Conf.parms_list_ignored_for_docker_image in pytorch_build_definitions.py
It contains parameters that will not be joined to docker_image but used for job name generation and build_environment generation
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25192
Reviewed By: kostmo
Differential Revision: D17078465
Pulled By: IvanKobzarev
fbshipit-source-id: c87534a45fb92c395e0dd3471213d42d3613c604