Skip to content

Mobile builds need to make custom build of libtorch to run, let's just include it to make it easier #67599

@Deamoner

Description

@Deamoner

🚀 Feature

Include lapackage in the libtorch and pytorch builds so that jit exports utilizing these packages do not require custom builds in order for the jit exports to work.

Motivation

Trying to get a model moved over to mobile has grown to a much bigger task when I have to rebuild torch or libtorch, I'm not sure which I have to rebuild in order to move the model to mobile. Other then that moving to mobile in pytorch I have found incredibly easy.

Pitch

Change the build ios cmake args to use lapack
Change the cmake on pytorch to in the devdependencies to have use lapack turned to 1

Alternatives

Additional context

https://discuss.pytorch.org/t/model-move-from-python-to-ios-missing-lapack/135317/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    oncall: mobileRelated to mobile support, including iOS and Android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions