Skip to content
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

Potential arm support? #19

Open
michaelbarton opened this issue Oct 7, 2022 · 3 comments
Open

Potential arm support? #19

michaelbarton opened this issue Oct 7, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@michaelbarton
Copy link

Hi! Would you be interested in arm support in future? I gave it a shot today and and think the -m64 CFLAG in the kmc patch precludes this. Thanks!

@rob-p
Copy link
Contributor

rob-p commented Oct 12, 2022

Hi @michaelbarton,

Yes; this is something that we'd be interested in supporting in the future — both to work natively on the new Apple arch, as well as to allow users to make use of Arm instances in the cloud.

I am not sure what will need to change to support ARM. But we'd be willing to explore that question and help out with an effort to make it cross-architecture.

Best,
Rob

@michaelbarton
Copy link
Author

Cheers Rob! I managed to get it working on arm arch in a Docker image using the '--platform=linux/x86' flag to enable emulation. It's quite a bit slower because of the emulation but I was able to get output. Great tool! Thanks!

@jamshed jamshed added the enhancement New feature or request label Oct 17, 2022
@rob-p
Copy link
Contributor

rob-p commented Jan 18, 2023

Hi @michaelbarton,

After some time, we have a positive update on this. @theJasonFan has taken the opportunity to patch the version of KMC that we use to adopt SIMDe. This allows KMC to compile natively for ARM and dispatch dynamically to the correct intrinsics. The rest of cuttlefish doesn't explicitly use intrinsics, and so the whole thing compiles cleanly and runs on the M1 and M2 machines to which we have access. Ideally, it should also work on other ARM processors (e.g. gravitron), but we haven't had a chance to test that yet.

If you'd like to give this a try, you can build directly from the develop branch, which has these latest changes. When these changes make it into a tagged release, we'll describe it in the release notes.

Best,
Rob

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

No branches or pull requests

3 participants