Cantera / cantera

Chemical kinetics, thermodynamics, and transport tool suite
https://cantera.org
Other
581 stars 342 forks source link

Add macOS M1 runner #1676

Closed ischoegl closed 3 months ago

ischoegl commented 3 months ago

Changes proposed in this pull request

macOS Apple Silicon runners are now available in beta (see standard-github-hosted-runners-for-public-repositories). This PR is a simple test whether things work at the moment.

If applicable, fill in the issue number this pull request is fixing

Closes #

If applicable, provide an example illustrating new features this pull request is introducing

Checklist

santoshshanbhogue commented 3 months ago

HI @ischoegl are you using any special flags to build Cantera from source on MacOS M1? Because when I try to use cantera with Xcode, it uses Rosetta as the architecture to match the dynamically linked libraries generated by Cantera. I am able to use it just fine, but was curious if I am compiling it the wrong way

ischoegl commented 3 months ago

HI @ischoegl are you using any special flags to build Cantera from source on MacOS M1? Because when I try to use cantera with Xcode, it uses Rosetta as the architecture to match the dynamically linked libraries generated by Cantera. I am able to use it just fine, but was curious if I am compiling it the wrong way

Good question. On my own M2, I am compiling within a conda environment that is built for ARM; I am attempting the same in here via this setup-miniconda example. It obviously isn't running yet.

Edit: aborting this attempt - not familiar enough with the GH Actions infrastructure.

PS: likely forgot a shell: bash -el {0} in the setup script, but oh well.

PPS: @santoshshanbhogue ... to answer your question: I just checked about Rosetta and cxx samples compiled on my machine appear to be running natively, i.e. on "Apple" ("kind" in Activity Monitor would otherwise be "PowerPC"). I am sure there are easier ways to check ...

bryanwweber commented 3 months ago

@ischoegl hope you don't mind, I'll reopen this and try to get it working this week 😊

ischoegl commented 3 months ago

@ischoegl hope you don't mind, I'll reopen this and try to get it working this week 😊

Thanks - no problem whatsoever!