Skip to content

What is required to support ARM Macs? (Given we have the example libs for python) #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juliangamble opened this issue Jun 4, 2023 · 4 comments

Comments

@juliangamble
Copy link

There is a page here showing how to setup Tensorflow on Python for M1 ARM Macs:
https://developer.apple.com/metal/tensorflow-plugin/

It seems we could adapt this example for the M1 ARM Macs.

My question is - what is required?

@Craigacp
Copy link
Collaborator

Craigacp commented Jun 4, 2023

We're working on simplifying the build process so we can pull in the TF binaries from the Python whls rather than building it from source. Once that's done it'll be easier for us to build the TF-Java binding for macOS ARM64 locally and upload it, then there will be support for that platform. At the moment we build TF-Java (both the TF native library and the TF JavaCPP binding) on Github Actions, there aren't any macOS ARM64 Github hosted runners and we have no build resources from Google (Google have been outsourcing builds for non-Linux platforms to other people anyway, Intel build Windows, AWS build Linux ARM64, Apple build macOS).

Once that's done we'll still need to figure out how to enable the pluggable device support as we looked at it last year and it was troublesome - tensorflow/java#410. Hopefully it'll be simpler with the new build but we don't know yet.

@juliangamble
Copy link
Author

Thanks, that's really helpful. Is there someone's repo fork I can look at to see a prototype of pulling in the TF binaries from Python? I'm working out if there is a way I can contribute.

@Craigacp
Copy link
Collaborator

Craigacp commented Jun 5, 2023

We're discussing how to implement it at the moment, so we don't have code yet. Spent last week checking out the whl folder layouts to make sure they all look roughly the same.

@Craigacp
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants