Skip to content
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

macOS Support #75

Open
3 of 6 tasks
angus-g opened this issue Sep 30, 2021 · 4 comments
Open
3 of 6 tasks

macOS Support #75

angus-g opened this issue Sep 30, 2021 · 4 comments
Assignees

Comments

@angus-g
Copy link
Owner

angus-g commented Sep 30, 2021

At the moment, we rely on a few binary-distributed packages (e.g. sosfilt), but these haven't been built for macOS. This means that the install instructions don't immediately translate to these platforms.

I'll need to come up with modified install instructions, and/or add binary distributions for non-Linux platforms.

  • Create macOS-specific packages for lagrangian-filtering and parcels
  • Update parcels to respect LDFLAGS in environment to support conda on macOS (angus-g/parcels@228ab3a)
  • Fix symbol not found on import filtering: _H5Pget_fapl_ros3 in h5py
  • Amend parcels dependencies on macOS to explicitly require openmp

I didn't amend the package dependencies, but there are pre-built environments available now:

  • conda env create angus-g/filtering37-omp
  • conda env create angus-g/filtering38-omp
  • conda env create angus-g/filtering39-omp
  • Add environment/macOS install instructions to easily-viewable README
  • Tag current beta as stable; there don't seem to have been any major issues with it in testing
@angus-g angus-g self-assigned this Sep 30, 2021
@angus-g angus-g changed the title MacOS Support macOS Support Oct 5, 2021
@loisbaker
Copy link

Hi - I'm really looking forward to trying this package, it looks great! I'm on macOS 11.3.1, and (predictably) had some trouble installing the package before finding this issue - perhaps it could be noted in the README and docs? I had a go with the pre-built environments you mention above, but got stuck at the filtering step when trying the analytic_example notebook with 'fatal error: 'omp.h' file not found', and had no success solving it. Let me know if you'd like further info about this error, it could be a problem my end.

@angus-g
Copy link
Owner Author

angus-g commented Nov 10, 2021

Thanks for giving it a go @loisbaker! I have temporarily lost access to a macOS system, but I'll get one again pretty soon. In the meantime, do you mind giving a little bit more detail about the steps you took to try the pre-built environment?

@loisbaker
Copy link

Thanks @angus-g. I just installed miniconda, created the environment using 'conda env create angus-g/filtering39-omp' as above, then ran the notebook analytic_example.ipynb with the relevant kernel. It all works fine until the filtering step, when it fails to compile. I've attached the error message below, and I have gcc 11.2.0_1 and libomp 13.0.0 installed.
compilation_error_macOS.txt

@angus-g
Copy link
Owner Author

angus-g commented Nov 21, 2021

Just to update on this: I've now got access to some macOS machines, so I'll be able take a look at how to make this more robust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants