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

Add support for MacOS with ARM CPUs (CMake + GitHub Action) #25

Draft
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

siggmo
Copy link
Collaborator

@siggmo siggmo commented Oct 4, 2024

Closes #21

Add support for macOS.

Changes in CMakeLists.txt:

  • Apple specific relative RPATH

New GitHub Actions workflow file for building and testing on macOS:

  • Using the macos-14 GitHub hosted runner (M1 CPU)
  • No container image, dependencies are installed directly in the workflow
  • Brew dependencies
  • clang C++ compiler (CMake default on macOS)
  • Otherwise more less the same workflow file as for Ubuntu

@siggmo siggmo marked this pull request as draft October 4, 2024 15:20
@siggmo
Copy link
Collaborator Author

siggmo commented Oct 4, 2024

So far I got it to compile, so I guess the depencies are fine now. But running the tests raises some HDF5 related errors. I've never worked with HDF5 in C++, so maybe @sanathkeshav could you please have a look at the errors?

The tests fail with both hdf5 and hdf5-mpi brew packages. They can't be installed at the same time:

Error: Cannot install hdf5-mpi because conflicting formulae are installed.
  hdf5: because hdf5-mpi is a variant of hdf5, one can only use one or the other

@IshaanDesai IshaanDesai added the enhancement New feature or request label Oct 5, 2024
@@ -18,7 +18,6 @@ if (NOT HDF5_C_IS_PARALLEL)
message(FATAL_ERROR "Parallel HDF5 implementation (mpi) required but not found!")
endif()
find_dependency(Eigen3)
find_dependency(OpenMP)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems to be unrelated to this pull request. Please revert.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is part of the remove OpenMP dependency PR. I merged it into this PR to make it work temporarily.

@IshaanDesai IshaanDesai linked an issue Nov 4, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for MacOS with ARM CPUs (CMake + GitHub Action)
2 participants