-
Notifications
You must be signed in to change notification settings - Fork 226
Compilation issues on OS X #1
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
Comments
Last error can be fixed by importing torch first:
|
|
Closing it, thanks for help! |
Sorry for bothering you again and for reopening this ticket. I tried to get You wrote in your tutorial:
Compiling PyTorch with
After browsing the internet, these error messages make sense to me, as it seems that In addition, using Using
Using
Any idea on how to solve this problem? |
For the first error, you simply can't use The second one looks like a bug, cc @goldsborough. |
Yeah we actually build PyTorch with clang on Mac, so my tutorial is wrong here. But for the issue, we actually apparently don't support CUDA on Mac, so all bets are off for this unfortunately :/ |
Just wanted to let you know that I fixed the problem. The actual problem is not within PyTorch and CUDA on macOS, but with distutils (cudamat/cudamat#39). I noticed that the def spawn(self, cmd):
spawn(cmd, dry_run=self.dry_run) with def spawn(self, cmd):
subprocess.call(cmd) in |
Setup:
Latest OS X and pytorch built from master (no GPU).
First error comes from
torch.cuda
not being present: https://github.com/pytorch/pytorch/blob/abd8501020d16e9aa12fa60dfd38ed70b8d7b71e/torch/utils/cpp_extension.py#L45. I manually set it to None.The next one is related to flags, if I try:
python setup.py install
I get the following error:That can be fixed by passing:
CFLAGS='-stdlib=libc++'
.Next problem comes when I try to import:
The text was updated successfully, but these errors were encountered: