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

Enable CPU-only builds on macOS #616

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tilmantroester
Copy link

This PR enables CPU-only builds on macOS. It in addition to the changes to spconv, this also requires some changes to ccimport and cumm. They are implemented at https://github.com/tilmantroester/ccimport/tree/macos_support and
https://github.com/tilmantroester/cumm/tree/macos_cpu_only. Let me know if you want PRs for those as well.

I've tested this on an arm64 mac, with both Apple and conda clang.
For development installs (pip install -e), both JIT and non-JIT work. Standard installs require the non-JIT build.

Compiling with OpenMP works but the results are unstable, so I disabled OpenMP on macOS.

tests/test_conv.py passes for the cases where CPU implementations are available (i.e. ConvAlgo.Native but not for example SparseGlobalMaxPool).

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

Successfully merging this pull request may close these issues.

None yet

1 participant