Comments (7)
While I am not good enough to handle compiling the necessary parts for Apple silicon, I can only suggest making use of cibuildwheel to produce all wanted wheels conveniently within CI pipelines.
A working example can be found within the scikit-learn workflows, with more listed on the cibuildwheels website itself.
I can only add that I'd be very happy to see Apple Silicon wheels for cpymad
:)
from cpymad.
Hi,
I succeeded in cross-compiling some wheels for M1. These are, however, completely untested because github doesn't provide any hosted runners for this platform. Also, there are tons of warnings during linking.
These experimental wheels will be released shortly (in about an hour or so) with cpymad v1.12.0. I would appreciate any feedback if those things work :)
This might be interesting for any of you @fsoubelet @ab-gh @GuillaumeRD, @pbelange.
Best, Thomas
from cpymad.
Hey @coldfix,
I just tested quite a few of my scripts / tests in a new 3.11 environment with your wheels and it all seems fine as far as I can see! :D
Thanks a lot, it's very nice to have these and not need to compile ourselves 👍
from cpymad.
Potentially solved with #114
from cpymad.
Sounds amazing! This might greatly simplify cpymad's actions configuration. On the other hand, it might not help with building madx itself.
from cpymad.
I was just checking up on the possibility of providing upstream cpymad wheels for M1. Apparently, github actions doesn't host M1 runners yet, although they're planning to support it, at some point. This means it would have to be built using cross-compilation, virtualization, or a self-hosted runner. The easiest option would be to wait for now.
Possibly, cibuildwheel already does this for us using cross-compilation, but I'll have to check in more detail. In particular, there might be difficulties with the need for a fortran compiler (as always), so I expect windows build won't work as easily using this tool.
from cpymad.
Regarding macOS it seems that indeed cibuildwheel
uses XCode command line tools to perform cross-compilation: https://cibuildwheel.readthedocs.io/en/stable/faq/#apple-silicon
from cpymad.
Related Issues (20)
- Element redefinition and twiss HOT 5
- Add support to release Linux AArch64 wheels HOT 7
- EMIT module output is displayed with "delay" HOT 2
- TWISS: no beta0 found HOT 1
- New functions
- Can't run madx instance. TypeError HOT 5
- Build error on Win10 Anaconda 2022.5 HOT 11
- What is the preferred way to retrieve the command (string) with which an Element was created? HOT 3
- Pitfalls on compiling libmadx/cpymad on Linux HOT 5
- Proposal: specialize tables HOT 8
- Wheel for M1 apple? HOT 2
- Python 3.11 Wheels HOT 4
- Error building cpymad on M1 Apple Silicon - "-march=core2" not supported HOT 5
- call does not work when double slash is present in file path HOT 2
- access default beam HOT 1
- ValueError: TypeError: write() argument must be str HOT 4
- Python 3.12 wheels HOT 2
- Differences in cpymad `table.twiss` and madx `table(twiss, X, X)` when running `use` HOT 7
- Twiss at certain positions HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpymad.