avml icon indicating copy to clipboard operation
avml copied to clipboard

Any plan to support ARM / ARM64 architecture?

Open kingsguardian opened this issue 2 years ago • 5 comments

More and more ARM CPU have been used by cloud service provider, is there any plan to build an ARM version ?

kingsguardian avatar Nov 11 '21 05:11 kingsguardian

AVML works out of the box on aarch64/ARM64. I successfully built and ran AVML on an Ubuntu 18.04 AARCH64 VM in QEMU earlier this morning. However, releasing officially built aarch64/ARM64 binaries is not yet supported.

Both of the CICD platforms available to us, GitHub Actions and Azure Devops Pipelines, only support aarch64/ARM64 using self-hosted runners.

As soon as either one of these platforms support hosted aarch64/ARM64 runners, we'll include releasing binaries for aarch64/ARM64.

bmc-msft avatar Nov 11 '21 18:11 bmc-msft

Given the recent announcement of public-preview availability of ARM64-based VMs in Azure, this will likely occur in the near future.

bmc-msft avatar Apr 05 '22 14:04 bmc-msft

Can you please provide the steps to build it for aarch64? Was trying to do it on a aws ec2, and I am not able to.

archanchoudhury avatar May 27 '22 04:05 archanchoudhury

Our supporting ARM64 binaries is likely with the upcoming Arm-based hosted GitHub Actions runners.

https://github.blog/changelog/2023-10-30-accelerate-your-ci-cd-with-arm-based-hosted-runners-in-github-actions/

demoray avatar Jan 22 '24 16:01 demoray

Can you please provide the steps to build it for aarch64? Was trying to do it on a aws ec2, and I am not able to.

Hi, here is how I did it :

git clone https://github.com/microsoft/avml.git
cd avml 

# Install MUSL
sudo apt-get install musl-dev musl-tools musl

# Install Rust via rustup
curl https://sh.rustup.rs -sSf | sh -s -- -y
exec $SHELL 

# Install cross
cargo install cross --git https://github.com/cross-rs/cross

# Build
cross build --release --target aarch64-linux-android

# Verify architecture
file target/aarch64-linux-android/release/avml

Change the target accordingly to your need :)

Abyss-W4tcher avatar Jan 24 '24 08:01 Abyss-W4tcher