PyPI wheels M1 Pro #703
Replies: 3 comments 2 replies
-
A guess I've got is that it's trying to raise an error, but something about raising the exception goes awry, and that's how you get a crash. Are you using the same compilers to build pyopencl as what was used to build your Python interpreter? Are you including the right version of the C++ standard library? |
Beta Was this translation helpful? Give feedback.
-
Upon a closer look, I'm actually not sure why Apple Silicon wheels are not being built. cibw claims it can do it. #704 contains some upgrades, maybe that'll help? If so, I'll do a release. |
Beta Was this translation helpful? Give feedback.
-
This is certainly a compiler/linker issue. And further, more likely than not an issue which I made for myself. I've since removed and reinstalled any compilers and linkers, namely Homebrew's llvm. This seems to have resolved my issue. Having access to the Apple Silicon wheels will be appreciated. I'll be sure to test those soon. |
Beta Was this translation helpful? Give feedback.
-
As the title implies, I am attempting to install pyopencl via PyPI on Mac ARM64.
While the installation appears to be successful, I encounter crashes when either when compiling OpenCL source containing an error or when passing a non buffer argument to a kernel -- such as a float.
In both cases, python crashes with the error
zsh: trace trap python3 ...
; and the intersection of both stacks starts with:What I am doing:
python -m venv .venv source .venv/bin/activate pip install --no-cache pyopencl
When pip installs pyopencl no wheels matching my system where found, thus pip compiles and builds these wheels from source.
I suspect that my issue lives here, but I am not familiar enough to troubleshoot this further.
How I am testing:
I've made the following scripts to test against.
pyopencl_test_argument.py
pyopencl_test_build_error.py
The crash reports stack trace for these are:
python pyopencl_test_argument.py
python pyopencl_test_build_error.py
As an aside, I am able to install and use pyopencl through Conda. Though, we do not use Conda for our project.
Beta Was this translation helpful? Give feedback.
All reactions