Closed lpossner closed 1 year ago
Thank you again for your feature extension. Your work was included in the current upstream of 0.2.1.
The new environment variable switch FASTMAT_COMPILER_OPTIONS
was added that allows to pass specific options to the compiler directly. It takes precedence to the FASTMAT_GENERIC
option.
Furthermore, building wheels for macOS-arm64 was added to the CI setup, which as of 0.2.1 was migrated from Travis-CI to Github Actions. I hove the new binary support will also help you with faster setup times on those machines. If you could, testing the new arm64 wheels for M1 silicon and reporting some feedback on that would be appreciated greatly. Thanks!
Cheers,
Christoph
Hello and thank you. I can confirm that the arm64 wheels from PyPI do work as well. Cheers!
The Apple clang compiler on systems with Apple ARM chips (e.g. M1 and M2) does not support the '-march' and '-mtune' compiler arguments anymore. The newer compiler argument '-mcpu' should be used. According to https://maskray.me/blog/2022-08-28-march-mcpu-mtune it is an alternative to both '-march' and '-mtune'. The setup.py script distinguishes now between Apple (Darwin) x86 and ARM64 systems and uses '-mcpu' as 'native' or 'arm', depending wether FASTMAT_GENERIC is set or not. With this configuration, no extra environment variable should be needed.