Closed TariqAHassan closed 3 years ago
Wow, thanks for the very detailed issue and for working out solutions.
I think it is obvious that we did not test on macOS. We shall look into it to at least incorporate your solutions and make building for Mac easier in general.
Thanks, Angelos
This solution worked for me too on a cpu-only OS X build. I tried building pytorch and fast-transformers with posix clang as well and that didn't work.
$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin: 10.0.1 (posix; installed from homebrew)
I use -Xclang instead of -Xpreprocessor, not sure what the difference is.
Hello
I had a bit of trouble installing this package via pip. I've included the steps I took to resolve these problem below.
Resolution
I solved this by dropping the binary and installing pytorch from source.
-fopenmp
flag used to install the C++ extensions. I tried to solve this by runningand replacing each
with
then installing the normal way:
Unfortunately it will be a few days before I can run a proper test on a GPU (I have some data preprocessing to do first :)), but I didn't want to wait until then to post this.
System information
Thank you for your wonderful work!