fluidex / snarkit

A toolkit to compile and debug circom circuit.
23 stars 1 forks source link

Apple silicon support #2

Closed lispc closed 3 years ago

lispc commented 3 years ago

Not support now due to the finite field algorithm assembly code using MULX/ADCX/ADOX instructions to speed up multiple precision multiply ( these instrucstions belong to ADX/BMI2 cpu features which are not supported on Rosetta 2 now)

You have to use qemu to emulate x64 inside an aarch docker like this https://github.com/lispc/circom-on-apple-silicon

Or waiting this https://github.com/docker/for-mac/issues/5485

update 2021.05.15:

docker for mac supports ADX/BMI2 now. So we can use x86 docker on Apple silicon now.

TODO: benchmark wasm vs docker