grape icon indicating copy to clipboard operation
grape copied to clipboard

macOS arm64 import grape does not work // BMI2, AVX2 incompatibility

Open O-mics opened this issue 1 year ago • 2 comments

Hello,

I am sorry to annoy you with that, a macOS was not my first choice to work on, but here I am. So, technically, pip install grape do download and compile.

But, anytime I want to import it, it begins this warning : UserWarning: Ensmallen is compiled for the Intel Haswell architecture (2013).On the current machine, the flags '['avx2', 'bmi2', 'popcnt']' are required but '{'avx2', 'bmi2'}' are not available. The library will use a slower but more compatible version (Intel Core2 2006).

And then, the kernel always die instead of going on.

As you may know, apple M1 does not support AVX/2 installation and I know this is beyond reach.

But do you have any clue on how I could still install grape locally?

Thanks

O-mics avatar Jun 29 '23 10:06 O-mics

Hi! Indeed the Mac M1 doesn't have AVX2 or BMI2, so I think you are using the virtualization environment (rosetta) instead of running the native one.

We do support native Mac M1, and also the use through docker on it.

If you can try to run it without rosetta, if it doesn't fix it, I'm happy to help!

zommiommy avatar Jun 29 '23 10:06 zommiommy

(We don't have access to any M1 mac, so if you still need help we can do a quick call on our discord server https://discord.gg/Nda2cqYvTN)

zommiommy avatar Jun 29 '23 10:06 zommiommy