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
Error compiling numpy to webassembly via emscrypten #19892
Comments
Open issue at pyodide: pyodide/pyodide#1827 |
Have you explored the dispatching related compile options already?: https://numpy.org/devdocs/reference/simd/simd-optimizations.html#build-options-for-compilation I don't know pyodine/webassembly, but I guess you may have to restrict the dispatching or even only compile a baseline. |
@seberg Thanks for sharing the reference. I probably should play with some of those options. Let me have a try :) |
It seems emscripten only supports up to 128 bit AVX, and do not understand instrinsics beyond that. @seberg Do you know how we can pass the compilation arguments to clang-13: error: unsupported option '--cpu-baseline="avx"' |
Okay I think I figured out how to pass the compiler option to numpy via the build.py and the issue has resolved for me. Thanks @seberg for the pointer. |
I'm trying to compile numpy to webassembly using emscrypten provided by pyodide build tool, but I'm getting the following issue:
I think it has something to do with numpy added avx512 support since 1.19+: 5562a8c. I'm wondering what compiler option we need to add after this addition.
Btw pyodide has already had numpy 1.17.5 built in, and up to 1.18.5, it still builds fine. But since 1.19+, we had some issues, though different from different versions.
Error message:
NumPy/Python version information:
numpy 1.20.0
python 3.9.5
The text was updated successfully, but these errors were encountered: