beeware / mobile-forge

A tool to manage building cross-platform binary wheels for mobile devices
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

pytorch #7

Open freakboy3742 opened 9 months ago

freakboy3742 commented 9 months ago

What is PyPI name of the package you would like to see added?

pytorch

Additional details

Requested by @yousifKashef (freakboy3742/chaquopy#8)

marcpabst commented 1 month ago

As I understand from the other issue, this is currently being held back by a missing Fortran compiler for iOS. After a quick Google search, I'm unsure why there is a need for one in the first place. After all, libtorch is C++ and apparently compiles for iOS fine. Is it a dependency on LAPACK or BLAS that needs Fortran?

mhsmith commented 1 month ago

Yes, PyTorch needs LAPACK or BLAS, but I don't think it needs Fortran directly.

As mentioned at https://github.com/beeware/mobile-forge/issues/10#issuecomment-1929289223, Apple may already provide official LAPACK and BLAS builds for iOS.

marcpabst commented 1 month ago

Right, I didn't catch that. With the new official iOS support for Python, we might be able to spark some interest from the PyTorch developers regarding this. I will fo ahead and open an issue over there