Enable CPU-only builds on macOS - #616
Conversation
|
Hello, thank you for contribution to macOS. I saw your branch for ccimport and cumm. I try to install ccimport, cumm and spconv.(I |
|
So I was able to go a little further with |
|
Ok, so I need to modify the build script but now I'm able to compile for macOS with: export CPU_ONLY=1
git clone https://github.com/tilmantroester/cumm --branch macos_cpu_only
pip install cumm
git clone https://github.com/haixuantao/spconv --branch master
git clone https://github.com/tilmantroester/ccimport --branch macos_support
pip install ccimport
cd spconv
pip install -e .
python test/test_conv.pyFor more https://github.com/haixuantao/spconv but this is experimental ! |
This PR enables CPU-only builds on macOS. It in addition to the changes to
spconv, this also requires some changes toccimportandcumm. They are implemented at https://github.com/tilmantroester/ccimport/tree/macos_support andhttps://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.pypasses for the cases where CPU implementations are available (i.e.ConvAlgo.Nativebut not for exampleSparseGlobalMaxPool).