-
-
Notifications
You must be signed in to change notification settings - Fork 577
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
[Bug]: IDAKLU solver does not work when running in an aarch64 Docker container (unresolved symbols from CasADi) #3879
Comments
Labelled this as a medium-priority issue because we don't have wheels for aarch64 Linux right now anyway (#3462), so users who are on such architectures are probably building PyBaMM from source already (if they wish to use the IDAKLU solver, that is). |
@arjxn-py, is there a reason why we are using |
We did have CMake pinned ( Edit: no luck so far with that |
No such reason to use the latest tag but, I guess i haven't anticipated that this might cause an issue later on. What we can do now is try pinning to the tags 4~10 months old (there are 3-4 tags I can see). As I am not sure if i can reproduce this aarch64 error locally (maybe lack of architecture), so I'd let you know with the updated branches on my fork to test them. |
Thanks, actually I did test the last three tags for the miniconda image by building it and running the container locally, and also pinned |
…docker-images Add workflow for testing docker image on aarch64
…://github.com/arjxn-py/PyBaMM into pybamm-team#3879-aarch64-broken-docker-images
Possible method of resolution, only an idea for now: build CasADi from source in the images (for both architectures). We don't need to compile interfaces to the many solvers and frameworks available, just the Python/SWIG bindings, so the build should take ~2 minutes – a fine compromise. Linux source installation instructions: https://github.com/casadi/casadi/wiki/InstallationLinux are quite actively documented and updated |
Might as well try that. If it's not already been worked on by someone, I'd love to try this PoC. |
Sure, we would love the help, @santacodes! |
PyBaMM Version
develop
Python Version
3.11
Describe the bug
See #3874 (comment) for more
I came across this when testing the most recent Docker image for PyBaMM on Docker Hub.
Steps to Reproduce
On an arm64 (M-series) macOS machine with Docker:
docker run -it pybamm/pybamm:idaklu
docker run -it pybamm/pybamm:idaklu
python -c "import pybamm; pybamm.IDAKLUSolver()
displays the following:
which upon further debugging reveals (see logs below)
Relevant log output
The text was updated successfully, but these errors were encountered: